forked from swc-project/swc
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(es/lexer): Reduce allocation while lexing identifiers (swc-proje…
…ct#9076) **Description:** In the fast path, we don't even use the buffer. ``` Benchmarking es/lexer/cal-com Benchmarking es/lexer/cal-com: Warming up for 3.0000 s Benchmarking es/lexer/cal-com: Collecting 100 samples in estimated 5.5395 s (900 iterations) Benchmarking es/lexer/cal-com: Analyzing es/lexer/cal-com time: [6.1799 ms 6.2010 ms 6.2250 ms] change: [-4.4027% -3.9504% -3.5372%] (p = 0.00 < 0.05) Performance has improved. Found 17 outliers among 100 measurements (17.00%) 4 (4.00%) high mild 13 (13.00%) high severe ```
- Loading branch information
Showing
1 changed file
with
79 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters