On May 13, 02014, at 2:42, krishnan venkat <[email protected]> wrote:
> I am currently looping through large arrays in a child thread, I know that > the thread blocks until the loop ends but is it a good idea to use > process.setImmediate or nextTick instead of the default for loop. > There is no async code in the for loop and I am worried that process.nextTick > might starve the event thread. > Is this a good use case for using the latter 2 options? Just how big are you talking? ns? us? ms duration? setImmediate is probably what you want if you want to yield. Aria
signature.asc
Description: Message signed with OpenPGP using GPGMail
