How to implement a backend extension execution of CPU-consuming operations without affecting the front-end UI interaction blocking problem? #8537
-
When I use the backend extension to call the node module to compile my project code, during the compilation process, I found that I was operating the file tree at this time, and found that only loading did not respond quickly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@zhaomenghuan I cannot be certain without looking at the source code of your changes, but you should look towards making the compilation of the project |
Beta Was this translation helpful? Give feedback.
-
Finally, I checked that it had nothing to do with the front-end and back-end communication layer of Theia. The main reason was that the main Node.js thread was occupied. This problem was solved through the worker_threads module in the Node service. |
Beta Was this translation helpful? Give feedback.
Finally, I checked that it had nothing to do with the front-end and back-end communication layer of Theia. The main reason was that the main Node.js thread was occupied. This problem was solved through the worker_threads module in the Node service.