code icon indicating copy to clipboard operation
code copied to clipboard

Use `Worker` to prevent ui lock on heavy calculations (node converting & code generation)

Open softmarshmallow opened this issue 4 years ago • 0 comments

When to use workers?

  • When running detections
  • When converting whole file to ReflectNode
  • When generating code

References

  • https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers
  • https://medium.com/techtrument/multithreading-javascript-46156179cf9a
  • https://www.jameslmilner.com/post/workers-with-webpack-and-typescript/

softmarshmallow avatar Dec 11 '21 19:12 softmarshmallow