Skip to content

Conversation

@Andarist
Copy link
Contributor

@Andarist Andarist commented Dec 2, 2025

replaceIndexedAccess was introduced in #42485 . While I was investigating some other things, it occurred to me that it could possibly be used earlier. Everything stated in this comment should still apply to the creation of the reverse-mapped type object itself

@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Dec 2, 2025
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Dec 2, 2025
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Dec 2, 2025

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

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/62822/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Git clone failed"

Otherwise...

Everything looks good!

@typescript-bot
Copy link
Collaborator

@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 - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 62,370 62,370 ~ ~ ~ p=1.000 n=6
Types 50,386 50,386 ~ ~ ~ p=1.000 n=6
Memory used 194,966k (± 0.93%) 193,290k (± 0.74%) ~ 192,601k 196,208k p=0.093 n=6
Parse Time 1.30s (± 0.64%) 1.31s (± 0.39%) ~ 1.30s 1.31s p=0.923 n=6
Bind Time 0.75s 0.75s ~ ~ ~ p=1.000 n=6
Check Time 9.93s (± 0.45%) 9.91s (± 0.23%) ~ 9.89s 9.95s p=0.808 n=6
Emit Time 2.73s (± 0.44%) 2.74s (± 0.64%) ~ 2.71s 2.76s p=0.933 n=6
Total Time 14.72s (± 0.30%) 14.71s (± 0.17%) ~ 14.68s 14.75s p=0.746 n=6
angular-1 - node (v18.15.0, x64)
Errors 2 2 ~ ~ ~ p=1.000 n=6
Symbols 956,047 956,082 +35 (+ 0.00%) ~ ~ p=0.001 n=6
Types 415,881 415,888 +7 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 1,255,064k (± 0.00%) 1,255,048k (± 0.00%) ~ 1,254,989k 1,255,109k p=0.810 n=6
Parse Time 6.55s (± 0.76%) 6.55s (± 0.41%) ~ 6.50s 6.58s p=1.000 n=6
Bind Time 1.96s (± 0.32%) 1.96s (± 0.21%) ~ 1.95s 1.96s p=0.673 n=6
Check Time 32.34s (± 0.19%) 32.39s (± 0.44%) ~ 32.18s 32.60s p=0.378 n=6
Emit Time 14.86s (± 0.19%) 14.85s (± 0.23%) ~ 14.79s 14.88s p=0.686 n=6
Total Time 55.70s (± 0.15%) 55.74s (± 0.23%) ~ 55.60s 55.93s p=0.936 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,722,079 2,722,079 ~ ~ ~ p=1.000 n=6
Types 937,469 937,469 ~ ~ ~ p=1.000 n=6
Memory used 3,050,885k (± 0.00%) 3,050,838k (± 0.00%) ~ 3,050,761k 3,050,883k p=0.173 n=6
Parse Time 8.54s (± 0.16%) 8.54s (± 0.18%) ~ 8.51s 8.55s p=0.805 n=6
Bind Time 2.32s (± 0.59%) 2.32s (± 0.71%) ~ 2.30s 2.34s p=0.934 n=6
Check Time 93.15s (± 0.53%) 92.79s (± 0.42%) ~ 92.38s 93.26s p=0.230 n=6
Emit Time 0.31s (± 1.32%) 0.31s (± 1.68%) ~ 0.30s 0.31s p=0.595 n=6
Total Time 104.32s (± 0.48%) 103.96s (± 0.38%) ~ 103.57s 104.45s p=0.296 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,251,545 1,251,544 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 259,756 259,756 ~ ~ ~ p=1.000 n=6
Memory used 2,574,799k (±11.81%) 2,392,915k (± 0.02%) ~ 2,392,323k 2,393,622k p=0.378 n=6
Parse Time 5.20s (± 1.52%) 5.16s (± 0.74%) ~ 5.12s 5.22s p=0.423 n=6
Bind Time 1.82s (± 1.68%) 1.84s (± 1.27%) ~ 1.81s 1.87s p=0.256 n=6
Check Time 35.45s (± 0.64%) 35.46s (± 0.30%) ~ 35.34s 35.60s p=0.936 n=6
Emit Time 3.01s (± 2.37%) 3.01s (± 2.33%) ~ 2.92s 3.10s p=0.936 n=6
Total Time 45.49s (± 0.48%) 45.47s (± 0.38%) ~ 45.23s 45.70s p=0.936 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,251,545 1,251,544 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 259,756 259,756 ~ ~ ~ p=1.000 n=6
Memory used 3,187,454k (± 0.02%) 3,187,815k (± 0.01%) ~ 3,187,064k 3,188,201k p=0.471 n=6
Parse Time 6.82s (± 0.79%) 6.82s (± 1.06%) ~ 6.69s 6.87s p=0.748 n=6
Bind Time 2.26s (± 0.91%) 2.25s (± 1.36%) ~ 2.21s 2.29s p=0.471 n=6
Check Time 43.16s (± 0.40%) 43.12s (± 0.27%) ~ 42.92s 43.23s p=0.936 n=6
Emit Time 3.51s (± 3.09%) 3.51s (± 2.00%) ~ 3.38s 3.57s p=0.936 n=6
Total Time 55.76s (± 0.40%) 55.69s (± 0.11%) ~ 55.62s 55.78s p=0.378 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 264,177 264,176 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 103,979 103,979 ~ ~ ~ p=1.000 n=6
Memory used 443,204k (± 0.01%) 443,241k (± 0.02%) ~ 443,150k 443,347k p=0.378 n=6
Parse Time 3.52s (± 0.53%) 3.52s (± 0.73%) ~ 3.49s 3.55s p=0.871 n=6
Bind Time 1.38s (± 1.29%) 1.37s (± 1.19%) ~ 1.35s 1.39s p=0.512 n=6
Check Time 19.15s (± 0.44%) 19.16s (± 0.48%) ~ 19.00s 19.28s p=0.872 n=6
Emit Time 1.54s (± 1.36%) 1.53s (± 0.58%) ~ 1.52s 1.54s p=0.563 n=6
Total Time 25.59s (± 0.32%) 25.58s (± 0.34%) ~ 25.41s 25.64s p=1.000 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 72 72 ~ ~ ~ p=1.000 n=6
Symbols 225,386 225,386 ~ ~ ~ p=1.000 n=6
Types 94,304 94,304 ~ ~ ~ p=1.000 n=6
Memory used 370,098k (± 0.04%) 370,074k (± 0.04%) ~ 369,939k 370,374k p=0.936 n=6
Parse Time 2.83s (± 1.17%) 2.85s (± 0.75%) ~ 2.81s 2.87s p=0.466 n=6
Bind Time 1.63s (± 0.51%) 1.65s (± 1.38%) ~ 1.63s 1.69s p=0.277 n=6
Check Time 16.61s (± 0.15%) 16.60s (± 0.68%) ~ 16.39s 16.72s p=0.688 n=6
Emit Time 0.00s 0.00s (±154.76%) ~ 0.00s 0.01s p=0.174 n=6
Total Time 21.08s (± 0.11%) 21.10s (± 0.58%) ~ 20.89s 21.23s p=0.378 n=6
vscode - node (v18.15.0, x64)
Errors 11 11 ~ ~ ~ p=1.000 n=6
Symbols 4,072,930 4,072,930 ~ ~ ~ p=1.000 n=6
Types 1,282,754 1,282,754 ~ ~ ~ p=1.000 n=6
Memory used 3,858,265k (± 0.00%) 3,858,428k (± 0.00%) +164k (+ 0.00%) 3,858,310k 3,858,683k p=0.008 n=6
Parse Time 15.70s (± 0.65%) 15.67s (± 0.58%) ~ 15.58s 15.79s p=0.748 n=6
Bind Time 5.39s (± 3.24%) 5.34s (± 2.31%) ~ 5.19s 5.56s p=0.936 n=6
Check Time 112.41s (± 2.56%) 111.48s (± 0.95%) ~ 110.36s 113.46s p=0.748 n=6
Emit Time 40.19s (± 5.78%) 41.32s (±11.12%) ~ 38.72s 50.52s p=1.000 n=6
Total Time 173.70s (± 2.92%) 173.82s (± 2.47%) ~ 171.02s 182.30s p=0.936 n=6
webpack - node (v18.15.0, x64)
Errors 40 40 ~ ~ ~ p=1.000 n=6
Symbols 380,455 380,455 ~ ~ ~ p=1.000 n=6
Types 166,708 166,708 ~ ~ ~ p=1.000 n=6
Memory used 540,348k (± 0.03%) 540,380k (± 0.01%) ~ 540,323k 540,441k p=0.575 n=6
Parse Time 4.67s (± 0.35%) 4.68s (± 0.39%) ~ 4.66s 4.71s p=0.563 n=6
Bind Time 2.03s (± 1.83%) 2.04s (± 1.26%) ~ 2.02s 2.08s p=0.627 n=6
Check Time 22.91s (± 0.33%) 22.92s (± 0.43%) ~ 22.73s 23.01s p=0.518 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 29.62s (± 0.36%) 29.65s (± 0.36%) ~ 29.45s 29.74s p=0.574 n=6
xstate-main - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 690,447 690,447 ~ ~ ~ p=1.000 n=6
Types 208,639 208,639 ~ ~ ~ p=1.000 n=6
Memory used 586,405k (± 0.03%) 586,454k (± 0.02%) ~ 586,240k 586,626k p=0.748 n=6
Parse Time 4.17s (± 0.53%) 4.17s (± 0.86%) ~ 4.13s 4.21s p=0.935 n=6
Bind Time 1.41s (± 1.76%) 1.41s (± 1.15%) ~ 1.39s 1.44s p=0.624 n=6
Check Time 20.85s (± 1.67%) 20.73s (± 1.25%) ~ 20.55s 21.25s p=0.748 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 26.43s (± 1.39%) 26.31s (± 0.95%) ~ 26.17s 26.81s p=0.872 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/62822/merge:

Everything looks good!

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

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

3 participants