-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waterfall much slower than series #621
Comments
If your functions are not actually asynchronous, i would not recommend using |
Good call. I was under the impression it was something like that since it could not be reproduced in jsfiddle or node.js. My functions are async but this suggests I should work around control flow (passing values) and use series if I don't want to suffer a performance impact. I would suggest making this distinction clearer in the documentation, but I'll accept if this is something too obvious/esoteric. Feel free to close this issue. Thanks! :) |
I actually would be a fan of removing the |
It is important to use process.nextTick in asynchronous APIs. This is fully explained in the Node.js documentation. |
Hello,
I've put the following in a file called
async.html
and opened it in Chrome:The output in the console looks like:
Note the delay between waterfall's "start" and "function" (14ms) vs. series' (0ms). In a real-world web app I have the waterfall delay is usually around 600ms. (!)
Is this a known issue, or even an issue at all? is there a reason for such a delay?
The text was updated successfully, but these errors were encountered: