Micro-optimization for string format (#95774)
I get this is a bit of a silly change in some ways. It isn't going to have some massive impact. But using dhat I got these stats on a smallish sample nextjs project | metric | A (parse.rs change) | B (baseline) | delta | | ------------------------ | -------------------- | ------------ | ------------------- | | total bytes allocated | 438.4 MiB | 442.6 MiB | -4.3 MiB (-0.94%) | | total allocation count | 1,672,688 | 1,872,347 | -199,659 (-10.66%) Eliminating ~200k allocations from this small change just felt worth it.
Showing
Please
register
or
sign in
to comment