Use a web worker to calculate the table
This commit is contained in:
parent
d645149a6d
commit
b2bd9125e7
9 changed files with 133 additions and 57 deletions
5
frontend/src/workers/calculateTable.ts
Normal file
5
frontend/src/workers/calculateTable.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { calculateTable, CalculateTableArgs } from '/src/utils'
|
||||
|
||||
self.onmessage = (e: MessageEvent<CalculateTableArgs>) => {
|
||||
self.postMessage(calculateTable(e.data))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue