Uh oh!
There was an error while loading. Please reload this page.
stream: improve Readable#from perf - #50359
Conversation
nodejs-github-bot
commented
Oct 24, 2023
Review requested:
|
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Oct 24, 2023
ronag
commented
Oct 24, 2023
Not sure I'm convinced the extra complexity is worth it. Let's see what the benchmark says. |
ronag
commented
Oct 24, 2023
@rluvaton when you start a benchmark ci in cases like this, add a filter e,g, |
ronag
commented
Oct 24, 2023
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ronag
commented
Oct 24, 2023
I'm -0. There is a perf improvement but the maintainability cost is quite high. |
rluvaton
commented
Oct 24, 2023
due to the removal of the async modifier I rerun the benchmark:
I'm on the fence as well... |
rluvaton
commented
Oct 24, 2023
@ronag Updated the benchmarks... |
nodejs-github-bot
commented
Oct 24, 2023
nodejs-github-bot
commented
Oct 24, 2023
nodejs-github-bot
commented
Oct 24, 2023
nodejs-github-bot
commented
Oct 24, 2023
benjamingr
commented
Oct 24, 2023
I'm tired so if I don't make sense let me know - In the array case can't we just set the stream's buffer to |
rluvaton
commented
Oct 24, 2023
it would really improve the performance for sure but wouldn't it be dangerous as we need to make the stream reach the state where it would have data after init and everything |
nodejs-github-bot
commented
Oct 25, 2023
ronag
commented
Oct 25, 2023
Not really? |
nodejs-github-bot
commented
Oct 25, 2023
benjamingr
commented
Oct 25, 2023
Yeah that was my point in #50359 I think that would be way faster and probably semver-major |
rluvaton
commented
Oct 25, 2023
Because it needs a semver major, I will create a new PR with the new code after that |
nodejs-github-bot
commented
Oct 25, 2023
nodejs-github-bot
commented
Oct 26, 2023
nodejs-github-bot
commented
Oct 26, 2023
Landed in 10d51e8 |
PR-URL: #50359 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
PR-URL: #50359 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Benchmarks
Benchmark URL