3 ms·
definitely true... If you're doing CPU intensive stuff in node, you should consider the following... worker script(s) (generic-pool helps too), with .fork(), r
by tracker1 13y ago
definitely true... If you're doing CPU intensive stuff in node, you should consider the following... worker script(s) (generic-pool helps too), with .fork(), refactoring the loop to use an async response with setImmediate, or converting to a binary module.
Example: https://github.com/tracker1/node-js-scrypt/blob/master/lib/scrypt-async.js https://github.com/tracker1/node-js-scrypt/blob/master/lib/s...