Skip to content

Restore Strada-style escaped symbol names - #4716

Draft
jakebailey wants to merge 3 commits into
mainfrom
jabaile/escaped-symbol-names
Draft

Restore Strada-style escaped symbol names#4716
jakebailey wants to merge 3 commits into
mainfrom
jabaile/escaped-symbol-names

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This has been on my mind for a while; seeing if going back to the old symbol name escaping method is any slower or less convenient, given the upside of them being valid strings to serialize.

Finally threw copilot at it to run perf...

@jakebailey

Copy link
Copy Markdown
Member Author

@typescript-bot perf test this

@typescript-automation

typescript-automation Bot commented Jul 23, 2026

Copy link
Copy Markdown

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
perf test this ✅ Started 👀 Results

@typescript-automation

Copy link
Copy Markdown

@jakebailey
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 4 4 ~ ~ ~ p=1.000 n=6
Symbols 81,812 (± 0.03%) 81,808 (± 0.02%) ~ 81,793 81,842 p=0.471 n=6
Types 98,817 98,817 ~ ~ ~ p=1.000 n=6
Memory Used 177,272k (± 0.70%) 174,997k (± 0.72%) -2,275k (- 1.28%) 172,740k 176,319k p=0.020 n=6
Memory Allocs 2,695,488 (± 0.01%) 2,695,436 (± 0.01%) ~ 2,695,161 2,695,874 p=0.575 n=6
Config Time 0.001s (±109.43%) 0.001s (±109.43%) ~ 0.000s 0.001s p=1.000 n=6
Parse Time 0.060s (± 3.33%) 0.060s (± 2.52%) ~ 0.058s 0.062s p=1.000 n=6
Bind Time 0.018s (±22.24%) 0.019s (± 4.37%) ~ 0.018s 0.020s p=0.452 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 1.001s (± 1.27%) 0.964s (± 1.76%) 🟩-0.037s (- 3.70%) 0.950s 0.986s p=0.013 n=6
Total Time 1.081s (± 1.26%) 1.044s (± 1.55%) 🟩-0.037s (- 3.44%) 1.029s 1.066s p=0.008 n=6
angular-1 - native
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 871,974 (± 0.18%) 871,818 (± 0.17%) ~ 870,156 873,731 p=0.936 n=6
Types 263,952 (± 0.00%) 263,972 (± 0.00%) +20 (+ 0.01%) 263,968 263,975 p=0.004 n=6
Memory Used 828,537k (± 0.09%) 828,444k (± 0.07%) ~ 827,745k 829,329k p=0.936 n=6
Memory Allocs 13,188,583 (± 0.20%) 13,187,396 (± 0.10%) ~ 13,174,761 13,207,305 p=0.471 n=6
Config Time 0.026s (±12.33%) 0.025s (±12.98%) ~ 0.022s 0.031s p=0.464 n=6
Parse Time 0.263s (± 3.08%) 0.260s (± 5.09%) ~ 0.246s 0.281s p=0.520 n=6
Bind Time 0.047s (±26.76%) 0.056s (±26.27%) ~ 0.043s 0.084s p=0.093 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 2.141s (± 1.63%) 2.118s (± 1.55%) ~ 2.074s 2.156s p=0.423 n=6
Total Time 2.488s (± 1.31%) 2.476s (± 1.15%) ~ 2.451s 2.522s p=0.336 n=6
mui-docs - native
Errors 11,279 (± 0.04%) 11,280 (± 0.05%) ~ 11,269 11,282 p=0.245 n=6
Symbols 4,447,936 4,447,936 ~ ~ ~ p=1.000 n=6
Types 1,659,114 1,659,114 ~ ~ ~ p=1.000 n=6
Memory Used 5,071,033k (± 0.02%) 5,070,094k (± 0.02%) ~ 5,069,015k 5,071,680k p=0.173 n=6
Memory Allocs 51,261,837 (± 0.05%) 51,254,944 (± 0.04%) ~ 51,234,951 51,282,434 p=0.810 n=6
Config Time 0.028s (±14.44%) 0.029s (±13.62%) ~ 0.024s 0.034s p=1.000 n=6
Parse Time 0.578s (± 1.45%) 0.579s (± 2.27%) ~ 0.562s 0.596s p=0.936 n=6
Bind Time 0.003s (±19.35%) 0.002s (±22.11%) ~ 0.002s 0.003s p=0.311 n=6
Check Time 19.718s (± 0.55%) 19.608s (± 0.78%) ~ 19.398s 19.847s p=0.173 n=6
Emit Time 0.662s (±22.83%) 0.587s (±21.31%) ~ 0.533s 0.843s p=0.065 n=6
Total Time 21.870s (± 1.18%) 21.670s (± 1.03%) ~ 21.378s 21.956s p=0.173 n=6
self-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,394,133 1,394,133 ~ ~ ~ p=1.000 n=6
Types 442,163 442,163 ~ ~ ~ p=1.000 n=6
Memory Used 1,670,097k (± 0.28%) 1,664,175k (± 0.26%) -5,922k (- 0.35%) 1,658,994k 1,669,046k p=0.031 n=6
Memory Allocs 97,327,327 (± 0.04%) 97,288,512 (± 0.06%) ~ 97,200,943 97,380,529 p=0.298 n=6
Config Time 0.022s (±17.70%) 0.022s (±12.55%) ~ 0.019s 0.027s p=0.628 n=6
Parse Time 0.257s (± 3.94%) 0.258s (± 1.11%) ~ 0.252s 0.260s p=0.872 n=6
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=6
Check Time 2.543s (± 0.73%) 2.522s (± 0.67%) ~ 2.502s 2.549s p=0.093 n=6
Emit Time 0.343s (± 3.30%) 0.341s (± 5.94%) ~ 0.318s 0.377s p=0.748 n=6
Total Time 32.777s (± 0.63%) 32.624s (± 0.90%) ~ 32.276s 33.138s p=0.128 n=6
self-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 337,626 337,626 ~ ~ ~ p=1.000 n=6
Types 199,520 199,520 ~ ~ ~ p=1.000 n=6
Memory Used 326,456k (± 0.03%) 326,468k (± 0.02%) ~ 326,381k 326,518k p=0.810 n=6
Memory Allocs 4,684,869 (± 0.01%) 4,685,699 (± 0.01%) +829 (+ 0.02%) 4,685,150 4,686,138 p=0.037 n=6
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=6
Parse Time 0.126s (± 4.37%) 0.126s (± 3.72%) ~ 0.119s 0.130s p=0.936 n=6
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=6
Check Time 1.290s (± 0.68%) 1.265s (± 0.58%) -0.025s (- 1.98%) 1.257s 1.276s p=0.005 n=6
Emit Time 0.122s (± 6.63%) 0.114s (± 9.03%) ~ 0.101s 0.126s p=0.149 n=6
Total Time 1.593s (± 0.71%) 1.559s (± 0.86%) -0.034s (- 2.11%) 1.545s 1.580s p=0.008 n=6
ts-pre-modules - native
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 97,488 97,488 ~ ~ ~ p=1.000 n=6
Types 356 356 ~ ~ ~ p=1.000 n=6
Memory Used 133,733k (± 0.02%) 133,744k (± 0.04%) ~ 133,683k 133,842k p=1.000 n=6
Memory Allocs 180,501 (± 0.19%) 180,660 (± 0.22%) ~ 180,290 181,254 p=0.810 n=6
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=6
Parse Time 0.115s (± 5.22%) 0.111s (± 2.63%) ~ 0.107s 0.114s p=0.467 n=6
Bind Time 0.043s (± 5.31%) 0.038s (±16.39%) ~ 0.029s 0.046s p=0.259 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=6
Total Time 0.161s (± 4.05%) 0.153s (± 2.84%) ~ 0.147s 0.159s p=0.065 n=6
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 7,278,523 7,278,523 ~ ~ ~ p=1.000 n=6
Types 2,545,339 2,545,339 ~ ~ ~ p=1.000 n=6
Memory Used 4,987,229k (± 0.02%) 4,989,336k (± 0.05%) ~ 4,986,615k 4,992,708k p=0.230 n=6
Memory Allocs 37,469,216 (± 0.13%) 37,437,901 (± 0.08%) ~ 37,415,001 37,482,157 p=0.298 n=6
Config Time 0.075s (± 8.30%) 0.073s (±11.55%) ~ 0.060s 0.082s p=1.000 n=6
Parse Time 0.976s (± 1.31%) 0.950s (± 3.18%) ~ 0.919s 0.997s p=0.128 n=6
Bind Time 0.167s (±13.70%) 0.176s (±10.22%) ~ 0.159s 0.208s p=0.077 n=6
Check Time 8.366s (± 0.54%) 8.405s (± 1.20%) ~ 8.279s 8.530s p=0.810 n=6
Emit Time 2.602s (± 7.93%) 2.433s (± 7.49%) ~ 2.222s 2.738s p=0.093 n=6
Total Time 12.207s (± 1.60%) 12.062s (± 1.17%) ~ 11.942s 12.323s p=0.128 n=6
webpack - native
Errors 2 2 ~ ~ ~ p=1.000 n=6
Symbols 192,516 192,516 ~ ~ ~ p=1.000 n=6
Types 340 340 ~ ~ ~ p=1.000 n=6
Memory Used 237,391k (± 0.17%) 237,493k (± 0.12%) ~ 236,980k 237,780k p=0.810 n=6
Memory Allocs 979,579 (± 0.35%) 980,142 (± 0.25%) ~ 977,838 983,702 p=0.689 n=6
Config Time 0.010s (±14.95%) 0.011s (±24.72%) ~ 0.008s 0.016s p=0.370 n=6
Parse Time 0.151s (± 4.75%) 0.158s (± 2.81%) ~ 0.153s 0.164s p=0.172 n=6
Bind Time 0s 0s ~ ~ ~ p=1.000 n=6
Check Time 0s 0s ~ ~ ~ p=1.000 n=6
Emit Time 0.046s (±17.91%) 0.041s (±16.27%) ~ 0.036s 0.054s p=0.569 n=6
Total Time 0.208s (± 4.21%) 0.211s (± 3.57%) ~ 0.202s 0.223s p=0.573 n=6
xstate-main - native
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,064,596 1,064,596 ~ ~ ~ p=1.000 n=6
Types 392,760 392,760 ~ ~ ~ p=1.000 n=6
Memory Used 649,042k (± 0.03%) 649,072k (± 0.01%) ~ 648,922k 649,172k p=0.810 n=6
Memory Allocs 5,008,908 (± 0.13%) 5,008,133 (± 0.13%) ~ 4,999,803 5,017,521 p=0.810 n=6
Config Time 0.005s (±18.57%) 0.005s (± 8.44%) ~ 0.004s 0.005s p=0.527 n=6
Parse Time 0.133s (± 3.98%) 0.131s (± 4.29%) ~ 0.120s 0.135s p=0.687 n=6
Bind Time 0.033s (±25.90%) 0.040s (±23.28%) ~ 0.029s 0.050s p=0.199 n=6
Check Time 1.241s (± 1.36%) 1.233s (± 0.14%) ~ 1.231s 1.235s p=0.421 n=6
Emit Time 0.001s 0.001s ~ ~ ~ p=1.000 n=6
Total Time 1.416s (± 1.23%) 1.414s (± 0.42%) ~ 1.407s 1.424s p=0.748 n=6
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • mui-docs - native
  • self-build-src - native
  • self-compiler - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

lsp

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-UnionsLSP - native
Req 1 - updateOpen 10ms (± 6.32%) 10ms (± 4.99%) ~ 10ms 11ms p=0.386 n=6
Req 2 - geterr 896ms (± 0.74%) 875ms (± 1.17%) -21ms (- 2.34%) 861ms 888ms p=0.008 n=6
Req 3 - references 43ms (±12.47%) 44ms (±11.28%) ~ 38ms 49ms p=1.000 n=6
Req 4 - navto 18ms (± 8.97%) 18ms (±17.14%) ~ 16ms 24ms p=0.325 n=6
Req 5 - completionInfo count 1,357 1,357 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 16ms (±28.56%) 17ms (±34.69%) ~ 11ms 27ms p=1.000 n=6
CompilerLSP - native
Req 1 - updateOpen 11ms (± 9.95%) 11ms ~ ~ ~ p=0.598 n=6
Req 2 - geterr 442ms (± 1.54%) 436ms (± 2.58%) ~ 425ms 451ms p=0.422 n=6
Req 3 - references 48ms (± 3.07%) 50ms (± 8.91%) ~ 43ms 56ms p=0.259 n=6
Req 4 - navto 18ms (± 3.51%) 18ms (± 4.96%) ~ 17ms 19ms p=1.000 n=6
Req 5 - completionInfo count 1,519 1,519 ~ ~ ~ p=1.000 n=6
Req 5 - completionInfo 21ms (±18.43%) 22ms (± 4.87%) ~ 20ms 23ms p=1.000 n=6
System info unknown
Hosts
  • native
Scenarios
  • CompilerLSP - native
  • Compiler-UnionsLSP - native
  • xstate-main-1-LSP - native
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

startup

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
lsp-startup - native
Execution time 4.74ms (±516.54%) 4.75ms (±516.55%) +0.01ms (+ 0.14%) 0.00ms 480.78ms p=0.000 n=600
tsgo-startup - native
Execution time 5.89ms (±516.54%) 5.93ms (±516.54%) +0.04ms (+ 0.64%) 0.00ms 596.27ms p=0.003 n=600
System info unknown
Hosts
  • native
Scenarios
  • lsp-startup - native
  • tsgo-startup - native
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant