Skip to content

refactor(ast): store symbol table keys that differ from the symbol's name as name proxies - #829

Merged
Andarist merged 6 commits into
mainfrom
refactor/symbol-table-name-proxies
Oct 28, 2026
Merged

Andarist merged 6 commits into
mainfrom
refactor/symbol-table-name-proxies

Conversation

@Andarist

Copy link
Copy Markdown
Collaborator

@codspeed

codspeed Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 8 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing refactor/symbol-table-name-proxies (cd7d97b) with main (e6e6aea)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Performance change vs main

Workflow run · main e6e6aea4452e → PR merge 482ffabb260e (head cd7d97bcfd04)

Clef gate: Running benchmarks because the decision was unavailable (crates/tsrs_ast/src/symbol.rs: patch exceeds the Clef context limit (18029 bytes)).

Release builds in fast mode (TSRS_FAST=1) with Hyperfine 2 hardware counters. After warming each binary, alternating main/PR pairs measure wall time at both the fast preset's default checker count and with --singleThreaded, with ten pairs per configuration by default. Instructions come from the single-threaded runs; peak RSS comes from the default-count runs.
Incremental runs start with fresh build info before every invocation; check runs disable incremental compilation.

Project Mode Single-thread wall time Δ Single-thread instructions Δ Default wall time Δ Default peak RSS Δ
vscode check +0.2% -0.122% +0.9% -0.2%
vscode incremental -1.1% -0.117% +1.1% +0.1%
xstate-main check +0.3% -0.207% +1.0% -0.7%
xstate-main incremental -0.2% -0.201% -0.1% 0.0%
webpack check -0.8% -0.159% -1.9% +0.2%
webpack incremental +5.2% -0.156% -2.4% -0.1%
mui-docs check +2.1% -0.294% +2.5% +0.6%
mui-docs incremental +0.8% -0.277% -2.8% -0.3%
Compiler check +4.9% -0.098% -3.2% -0.4%
Compiler incremental +1.0% -0.099% -0.4% -0.3%
Compiler-Unions check +0.2% -0.147% +0.2% 0.0%
Compiler-Unions incremental -0.2% -0.146% +0.7% -0.5%
cal-diy check +7.7% -0.203% -2.4% -0.5%
cal-diy incremental -1.0% -0.201% -1.2% -0.3%
formbricks-web check -1.3% -0.151% +3.6% -0.3%
formbricks-web incremental +3.7% -0.138% +1.8% -0.2%
supabase-studio check +0.5% -0.133% -0.4% -0.3%
supabase-studio incremental -2.7% -0.121% +0.2% +0.1%
t3code-server check -1.5% -0.168% -0.5% -0.3%
t3code-server incremental -1.4% -0.156% +0.5% +0.1%
mikro-orm check +0.7% -0.214% -2.2% -0.2%
mikro-orm incremental -4.0% -0.223% 0.0% -0.3%
next-packages-next check +0.5% -0.226% +1.6% -0.8%
next-packages-next incremental +0.5% -0.220% +0.5% 0.0%
next-root check -0.6% -0.194% -4.1% +0.1%
next-root incremental 0.0% -0.190% +0.1% -0.1%
storybook check -3.8% -0.212% +0.1% 0.0%
storybook incremental -3.1% -0.200% -0.5% 0.0%
nuxt check +1.0% -0.131% -5.4% +0.1%
nuxt incremental +1.2% -0.117% -5.3% +0.2%
playwright check -1.5% -0.225% -0.2% -0.6%
playwright incremental -1.8% -0.223% +0.4% +0.1%
drizzle-orm check 0.0% -0.233% +7.5% +0.5%
drizzle-orm incremental -0.8% -0.231% -4.2% +0.5%
typeorm check -0.5% -0.187% +2.5% -0.7%
typeorm incremental -0.3% -0.177% -1.3% -0.3%
date-fns check +0.6% -0.084% +5.5% -1.5%
date-fns incremental -2.7% -0.014% -3.5% -0.4%

Negative means the PR used less; positive means it used more. Deltas are medians of paired PR/main ratios for wall time and instructions. Single-threaded runs reduce scheduling noise; shared CI machines can still add noise to wall time.

Measured medians (main → PR)
Project Mode Single-thread wall time (s) Single-thread instructions Default wall time (s) Default peak RSS (MiB)
vscode check 10.852 → 10.760 82,878,188,778 → 82,776,921,070.5 1.646 → 1.660 1875.2 → 1871.0
vscode incremental 11.000 → 10.967 84,790,570,799.5 → 84,692,026,290 1.731 → 1.717 2188.1 → 2191.0
xstate-main check 0.529 → 0.535 5,578,271,497.5 → 5,566,665,436.5 0.133 → 0.134 243.7 → 241.9
xstate-main incremental 0.541 → 0.544 5,729,934,659.5 → 5,718,439,931 0.162 → 0.162 244.8 → 244.8
webpack check 1.497 → 1.521 10,964,896,896 → 10,947,550,653 0.385 → 0.382 406.7 → 407.4
webpack incremental 1.181 → 1.252 11,117,992,623.5 → 11,100,787,691 0.276 → 0.277 406.5 → 406.0
mui-docs check 3.389 → 3.469 33,289,370,239 → 33,192,023,235 1.167 → 1.186 1239.0 → 1247.0
mui-docs incremental 3.007 → 3.037 34,556,550,342 → 34,460,885,445 1.494 → 1.428 1176.0 → 1172.9
Compiler check 0.184 → 0.190 1,779,237,626.5 → 1,777,507,048 0.071 → 0.069 77.7 → 77.4
Compiler incremental 0.144 → 0.143 1,785,631,600 → 1,783,874,035.5 0.066 → 0.066 79.3 → 79.1
Compiler-Unions check 0.232 → 0.236 3,059,843,586.5 → 3,055,364,064.5 0.100 → 0.100 81.5 → 81.5
Compiler-Unions incremental 0.231 → 0.230 3,065,276,242.5 → 3,060,797,980 0.107 → 0.106 84.7 → 84.3
cal-diy check 3.233 → 3.463 29,056,500,753.5 → 28,996,369,371 0.925 → 0.877 1371.2 → 1364.5
cal-diy incremental 3.433 → 3.407 30,551,679,283 → 30,489,295,720 1.200 → 1.175 1281.1 → 1276.9
formbricks-web check 4.780 → 4.736 37,231,392,421.5 → 37,174,575,071.5 1.104 → 1.120 1595.5 → 1590.3
formbricks-web incremental 5.036 → 5.324 39,691,607,862 → 39,634,513,912 1.325 → 1.357 1637.6 → 1634.2
supabase-studio check 3.972 → 4.068 40,964,594,935 → 40,909,277,445.5 0.933 → 0.921 1327.0 → 1323.3
supabase-studio incremental 5.213 → 5.063 43,809,870,792 → 43,754,693,373 1.547 → 1.435 1378.3 → 1379.2
t3code-server check 4.272 → 4.210 41,211,314,724.5 → 41,142,277,671 1.692 → 1.694 1466.6 → 1462.1
t3code-server incremental 4.729 → 4.429 41,613,613,977 → 41,548,384,511.5 1.916 → 1.873 1320.4 → 1321.1
mikro-orm check 5.910 → 6.010 50,624,624,077 → 50,516,755,246.5 1.241 → 1.210 1542.1 → 1539.8
mikro-orm incremental 5.402 → 5.167 50,854,129,618.5 → 50,742,027,854 1.287 → 1.295 1499.1 → 1495.2
next-packages-next check 2.372 → 2.349 17,461,525,792 → 17,422,218,300.5 0.583 → 0.587 565.6 → 560.8
next-packages-next incremental 1.958 → 1.962 17,743,606,400.5 → 17,704,654,721.5 0.527 → 0.539 566.3 → 566.5
next-root check 1.511 → 1.489 14,014,460,909.5 → 13,987,012,794 0.346 → 0.329 434.3 → 434.5
next-root incremental 1.236 → 1.237 14,387,853,258 → 14,360,327,369.5 0.317 → 0.315 475.6 → 475.3
storybook check 1.230 → 1.148 9,069,103,424.5 → 9,049,782,694 0.376 → 0.369 412.1 → 412.0
storybook incremental 1.150 → 1.155 9,373,451,628.5 → 9,354,813,968 0.362 → 0.373 386.9 → 387.1
nuxt check 0.915 → 0.937 8,537,476,531 → 8,526,315,015.5 0.237 → 0.221 393.5 → 393.8
nuxt incremental 0.912 → 0.943 8,915,301,298.5 → 8,904,729,395 0.249 → 0.238 394.8 → 395.4
playwright check 0.688 → 0.684 7,457,781,600 → 7,440,932,280 0.184 → 0.177 367.8 → 365.5
playwright incremental 0.721 → 0.706 7,591,400,846.5 → 7,574,513,279 0.195 → 0.195 343.7 → 343.9
drizzle-orm check 0.733 → 0.752 5,979,029,709.5 → 5,965,235,872 0.230 → 0.242 387.1 → 389.1
drizzle-orm incremental 0.846 → 0.842 6,143,725,820.5 → 6,129,539,018.5 0.301 → 0.288 347.7 → 349.6
typeorm check 0.730 → 0.730 6,418,824,077 → 6,406,851,919.5 0.187 → 0.190 228.0 → 226.4
typeorm incremental 0.668 → 0.666 6,737,028,357.5 → 6,724,942,371 0.170 → 0.176 234.0 → 233.3
date-fns check 0.372 → 0.355 3,354,755,592 → 3,351,791,889 0.110 → 0.109 152.9 → 150.7
date-fns incremental 0.407 → 0.401 3,570,066,260 → 3,569,964,306 0.213 → 0.211 163.9 → 163.2

@Andarist
Andarist marked this pull request as ready for review October 28, 2026 17:59
@Andarist
Andarist added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 677622d Oct 28, 2026
115 checks passed
@Andarist
Andarist deleted the refactor/symbol-table-name-proxies branch October 28, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant