Commit bc7d55e
committed
revert: splitIntoPotentialTokens lookup tables
CodSpeed reports a ~19% instruction-count regression on both
`helpers/splitIntoPotentialTokens` benchmarks (and ~11% on the
`original-source` streamChunks benchmarks that call it) when the
chained `===` comparisons are replaced with Uint8Array lookups.
Restore the comparison-chain form; the other perf changes from the
previous commit (readMappings, streamChunksOfSourceMap,
createMappingsSerializer, ConcatSource, streamChunksOfCombinedSourceMap)
are unaffected.
https://claude.ai/code/session_013RELTj96iEXrmMSPxnwjeR1 parent a241607 commit bc7d55e
1 file changed
Lines changed: 9 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 16 | | |
36 | 17 | | |
37 | 18 | | |
| |||
45 | 26 | | |
46 | 27 | | |
47 | 28 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 29 | + | |
51 | 30 | | |
52 | 31 | | |
53 | 32 | | |
54 | | - | |
55 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
56 | 41 | | |
57 | 42 | | |
58 | 43 | | |
| |||
0 commit comments