4 ms·
I'd still ( and have ) used node for cpu intensive stuff. If you have a long running computation that can be broken down (mine was 500-2000 steps), you can bre
by danschumann 10y ago
I'd still ( and have ) used node for cpu intensive stuff. If you have a long running computation that can be broken down (mine was 500-2000 steps), you can break the single process by `setTimeout(...,0)` the next step, so other stuff can serve pages. Or, you can break it out into a c job.
- RSZC 10y agoYou might want to check out process.nextTick: https://howtonode.org/understanding-process-next-tick https://howtonode.org/understanding-process-next-tick