Closed jridgewell closed 4 years ago
This allows the engine to skip all blocks of valid ASCII chars, considerably speeding it up. The tests, which include an escape for every 16th code point between 0 and 0x10FFFF, goes from ~24s to ~700ms (a 34x speedup).
0
0x10FFFF
This subsumes https://github.com/mathiasbynens/jsesc/pull/60.
Amazing! Thank you :)
This allows the engine to skip all blocks of valid ASCII chars, considerably speeding it up. The tests, which include an escape for every 16th code point between
0
and0x10FFFF
, goes from ~24s to ~700ms (a 34x speedup).This subsumes https://github.com/mathiasbynens/jsesc/pull/60.