Conversation
CodSpeed Performance ReportMerging #5448 will not alter performanceComparing Summary
Footnotes
|
30c0921 to
2259fce
Compare
|
Looks like there are still some bugs to work out here with the failing CI... but even then, my preference would be to settle on #5449 first before landing any changes here. Also, since we do utf8 conversions everywhere, not just in TextEncoder::encode, my preference would be to address this more generally. That is, the optimized encoding path -- if we decide it's worthwhile -- should go into |
98afb46 to
f1bbfe6
Compare
7fac631 to
681bf71
Compare
3a6ea76 to
6e3972e
Compare
|
I don't think we need to speed optimize for the broken UTF-16 case unless and until someone shows it matters. The only reason to space-optimize would be to avoid throwing OOM, so if we can guarantee that doesn't happen I'm OK with some temporary blowup in space too. |
|
This helps a lot. I'll push with your changes. Thanks @erikcorry |
* Simplify * Tune slightly * Fix assert * Fix perf regression and OOM read * Handle very tiny output buffers * feedback
bea0ed3 to
166e9fd
Compare
572cc71 to
cad9175
Compare
cad9175 to
1a2eab7
Compare
PR-URL: #61496 Refs: cloudflare/workerd#5448 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Daniel Lemire <daniel@lemire.me>
PR-URL: #61496 Refs: cloudflare/workerd#5448 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Daniel Lemire <daniel@lemire.me>
PR-URL: #61496 Refs: cloudflare/workerd#5448 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Daniel Lemire <daniel@lemire.me>
Improves Next.js benchmarks by 4-7% and WebAssembly applications by 5%
Important disclaimer: Codspeed will not show any improvement (although you can look into previous edits of the codspeed post) because this change is behind an autogate.
Sharing @mhart's benchmark results:
Before:
After:
This is pretty consistent over multiple runs. Seeing 1.04x - 1.07x
Claude is used to write documentation in encoding-test.c++.