Skip to content

Commit 57d2dcb

Browse files
committed
Use our own splitting in normalize
`String.prototype.split` is slow with regexps. Writing out the C-style string searching code makes us take .8x the time on the "iterate.already.parsed" benchmark from the "wasm" branch. With the old String.prototype.split: Samples Total (ms) Mean (ms) Standard Deviation (ms) 50 325864.18 6517.28 162.15 With the new custom splitting: Samples Total (ms) Mean (ms) Standard Deviation (ms) 50 257604.64 5152.09 221.19
1 parent 4a047e7 commit 57d2dcb

File tree

2 files changed

+3362
-3304
lines changed

2 files changed

+3362
-3304
lines changed

0 commit comments

Comments
 (0)