-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Readable.map concurrency not running map on next item before previous finish #46132
Comments
Maybe it's not a bug as we don't state the minimum number that the map function will run concurrently. |
This was intentional though it can be discussed/changed |
If you look at the original PR - it had highWaterMark, it was removed only for simplicity and can be re-added |
rluvaton
added a commit
to rluvaton/node
that referenced
this issue
Aug 20, 2023
rluvaton
added a commit
to rluvaton/node
that referenced
this issue
Aug 20, 2023
rluvaton
added a commit
to rluvaton/node
that referenced
this issue
Aug 23, 2023
this is done so we don't wait for the first items to finish before starting new ones Fixes: nodejs#46132 Co-authored-by: Robert Nagy <ronagy@icloud.com>
nodejs-github-bot
pushed a commit
that referenced
this issue
Aug 24, 2023
this is done so we don't wait for the first items to finish before starting new ones Fixes: #46132 Co-authored-by: Robert Nagy <ronagy@icloud.com> PR-URL: #49249 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
UlisesGascon
pushed a commit
that referenced
this issue
Sep 10, 2023
this is done so we don't wait for the first items to finish before starting new ones Fixes: #46132 Co-authored-by: Robert Nagy <ronagy@icloud.com> PR-URL: #49249 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
alexfernandez
pushed a commit
to alexfernandez/node
that referenced
this issue
Nov 1, 2023
this is done so we don't wait for the first items to finish before starting new ones Fixes: nodejs#46132 Co-authored-by: Robert Nagy <ronagy@icloud.com> PR-URL: nodejs#49249 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
targos
pushed a commit
that referenced
this issue
Nov 27, 2023
this is done so we don't wait for the first items to finish before starting new ones Fixes: #46132 Co-authored-by: Robert Nagy <ronagy@icloud.com> PR-URL: #49249 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
sercher
added a commit
to sercher/graaljs
that referenced
this issue
Apr 25, 2024
this is done so we don't wait for the first items to finish before starting new ones Fixes: nodejs/node#46132 Co-authored-by: Robert Nagy <ronagy@icloud.com> PR-URL: nodejs/node#49249 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
sercher
added a commit
to sercher/graaljs
that referenced
this issue
Apr 25, 2024
this is done so we don't wait for the first items to finish before starting new ones Fixes: nodejs/node#46132 Co-authored-by: Robert Nagy <ronagy@icloud.com> PR-URL: nodejs/node#49249 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
v18.12.1
Platform
Darwin Razs-MBP 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
Subsystem
stream
What steps will reproduce the bug?
Same idea but with pretty output
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
that as soon as any item finishes it will start the next one until reaching the
highWaterMark
(maybe we should add it as an option?)the docs say:
for the nodejs internal test the test should pass
For the Code with pretty output, the output should look like this:
(as soon as one finished another one start)
What do you see instead?
For the nodejs internal test
For the Code with pretty output
function not running even though they can
Additional information
No response
The text was updated successfully, but these errors were encountered: