Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From the FAQ. https://github.com/Microsoft/monaco-editor#faq:

"Why all these web workers and why should I care?"

"A: Language services create web workers to compute heavy stuff outside the UI thread. They cost hardly anything in terms of resource overhead and you shouldn't worry too much about them, as long as you get them to work (see above the cross-domain case)."

Maybe that's part of the reason?



I think that's pretty much standard practice. I'm not sure about Atom but Ace leverage's workers for linting, intellesense and things like that.


Educated guess: generator functions with chunked processing on setInterval callbacks would be less CPU consuming for such tasks.


Pretty sure setInterval still uses the same processor core, wasting the others




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: