Skip to content

Remove redundant getStringLiteralType call #59803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

MichalMarsalek
Copy link
Contributor

Is there a reason for this extra call instead of just using the source type directly? The tests pass the same without it. This was introduced in #47050.

@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.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 29, 2024
Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure this is correct.

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 20, 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

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

Everything looks good!

@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
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 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,390 62,390 ~ ~ ~ p=1.000 n=6
Types 50,395 50,395 ~ ~ ~ p=1.000 n=6
Memory used 194,110k (± 0.95%) 193,023k (± 0.09%) ~ 192,940k 193,360k p=0.378 n=6
Parse Time 1.30s (± 1.51%) 1.31s (± 0.75%) ~ 1.30s 1.33s p=0.152 n=6
Bind Time 0.73s 0.73s ~ ~ ~ p=1.000 n=6
Check Time 9.76s (± 0.29%) 9.71s (± 0.45%) ~ 9.66s 9.77s p=0.077 n=6
Emit Time 2.72s (± 1.04%) 2.73s (± 0.75%) ~ 2.70s 2.75s p=0.413 n=6
Total Time 14.50s (± 0.25%) 14.48s (± 0.34%) ~ 14.39s 14.53s p=0.628 n=6
angular-1 - node (v18.15.0, x64)
Errors 37 37 ~ ~ ~ p=1.000 n=6
Symbols 948,488 948,488 ~ ~ ~ p=1.000 n=6
Types 411,006 411,006 ~ ~ ~ p=1.000 n=6
Memory used 1,224,330k (± 0.00%) 1,224,311k (± 0.00%) ~ 1,224,286k 1,224,344k p=0.575 n=6
Parse Time 8.06s (± 0.80%) 8.01s (± 0.52%) ~ 7.96s 8.07s p=0.092 n=6
Bind Time 2.30s (± 0.84%) 2.28s (± 0.70%) ~ 2.25s 2.30s p=0.101 n=6
Check Time 37.96s (± 0.25%) 37.89s (± 0.27%) ~ 37.77s 38.03s p=0.261 n=6
Emit Time 18.35s (± 0.46%) 18.33s (± 0.52%) ~ 18.20s 18.44s p=0.936 n=6
Total Time 66.66s (± 0.19%) 66.52s (± 0.30%) ~ 66.19s 66.74s p=0.298 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,347,891 2,347,891 ~ ~ ~ p=1.000 n=6
Types 845,644 845,644 ~ ~ ~ p=1.000 n=6
Memory used 2,120,298k (± 0.01%) 2,120,268k (± 0.01%) ~ 2,120,170k 2,120,445k p=0.575 n=6
Parse Time 7.26s (± 0.23%) 7.28s (± 0.27%) ~ 7.25s 7.31s p=0.145 n=6
Bind Time 2.47s (± 0.75%) 2.46s (± 0.79%) ~ 2.44s 2.49s p=0.622 n=6
Check Time 72.48s (± 1.46%) 72.29s (± 1.15%) ~ 70.61s 72.82s p=0.423 n=6
Emit Time 0.14s (± 3.60%) 0.15s (± 2.75%) ~ 0.14s 0.15s p=0.112 n=6
Total Time 82.36s (± 1.28%) 82.17s (± 0.97%) ~ 80.56s 82.67s p=0.471 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,228,510 1,228,510 ~ ~ ~ p=1.000 n=6
Types 266,960 266,960 ~ ~ ~ p=1.000 n=6
Memory used 2,358,581k (± 0.01%) 2,358,627k (± 0.02%) ~ 2,358,184k 2,359,183k p=0.936 n=6
Parse Time 5.19s (± 1.25%) 5.22s (± 1.24%) ~ 5.12s 5.29s p=0.378 n=6
Bind Time 1.77s (± 0.97%) 1.78s (± 0.78%) ~ 1.75s 1.79s p=0.565 n=6
Check Time 35.20s (± 0.23%) 35.23s (± 0.33%) ~ 35.04s 35.34s p=0.575 n=6
Emit Time 2.97s (± 1.30%) 2.98s (± 0.55%) ~ 2.95s 2.99s p=0.935 n=6
Total Time 45.15s (± 0.29%) 45.21s (± 0.28%) ~ 45.03s 45.36s p=0.471 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,228,510 1,228,510 ~ ~ ~ p=1.000 n=6
Types 266,960 266,960 ~ ~ ~ p=1.000 n=6
Memory used 2,426,019k (± 0.02%) 2,426,498k (± 0.06%) ~ 2,425,018k 2,429,286k p=0.810 n=6
Parse Time 5.48s (± 0.53%) 5.48s (± 1.32%) ~ 5.38s 5.56s p=1.000 n=6
Bind Time 1.78s (± 1.40%) 1.79s (± 1.43%) ~ 1.76s 1.82s p=0.564 n=6
Check Time 35.37s (± 0.40%) 35.31s (± 0.41%) ~ 35.13s 35.49s p=0.298 n=6
Emit Time 3.02s (± 0.57%) 3.01s (± 1.74%) ~ 2.95s 3.09s p=1.000 n=6
Total Time 45.65s (± 0.28%) 45.59s (± 0.41%) ~ 45.34s 45.82s p=0.520 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,816 262,816 ~ ~ ~ p=1.000 n=6
Types 106,833 106,833 ~ ~ ~ p=1.000 n=6
Memory used 440,518k (± 0.01%) 440,483k (± 0.02%) ~ 440,356k 440,569k p=0.378 n=6
Parse Time 3.56s (± 0.84%) 3.52s (± 1.01%) ~ 3.49s 3.57s p=0.168 n=6
Bind Time 1.30s (± 0.80%) 1.31s (± 0.68%) ~ 1.30s 1.32s p=0.452 n=6
Check Time 18.94s (± 0.22%) 18.91s (± 0.25%) ~ 18.87s 18.98s p=0.297 n=6
Emit Time 1.51s (± 1.49%) 1.53s (± 1.14%) ~ 1.51s 1.56s p=0.145 n=6
Total Time 25.31s (± 0.17%) 25.28s (± 0.28%) ~ 25.20s 25.41s p=0.077 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 70 70 ~ ~ ~ p=1.000 n=6
Symbols 226,113 226,113 ~ ~ ~ p=1.000 n=6
Types 94,488 94,488 ~ ~ ~ p=1.000 n=6
Memory used 371,398k (± 0.04%) 371,325k (± 0.02%) ~ 371,214k 371,421k p=0.689 n=6
Parse Time 2.90s (± 0.97%) 2.90s (± 1.36%) ~ 2.84s 2.94s p=0.872 n=6
Bind Time 1.59s (± 2.09%) 1.59s (± 1.46%) ~ 1.56s 1.62s p=0.809 n=6
Check Time 16.48s (± 0.30%) 16.47s (± 0.45%) ~ 16.35s 16.57s p=0.872 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.98s (± 0.38%) 20.96s (± 0.56%) ~ 20.76s 21.09s p=0.936 n=6
vscode - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 3,220,984 3,220,984 ~ ~ ~ p=1.000 n=6
Types 1,092,532 1,092,532 ~ ~ ~ p=1.000 n=6
Memory used 3,296,272k (± 0.01%) 3,296,037k (± 0.01%) ~ 3,295,629k 3,296,299k p=0.173 n=6
Parse Time 14.29s (± 0.37%) 14.24s (± 0.33%) ~ 14.17s 14.31s p=0.127 n=6
Bind Time 4.59s (± 0.64%) 4.61s (± 0.31%) ~ 4.59s 4.63s p=0.089 n=6
Check Time 88.81s (± 1.53%) 89.23s (± 1.64%) ~ 88.11s 91.45s p=0.298 n=6
Emit Time 25.06s (± 8.70%) 26.46s (± 7.99%) ~ 23.29s 28.41s p=0.173 n=6
Total Time 132.75s (± 2.45%) 134.55s (± 2.23%) ~ 130.66s 138.08s p=0.229 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 293,866 293,866 ~ ~ ~ p=1.000 n=6
Types 119,617 119,617 ~ ~ ~ p=1.000 n=6
Memory used 447,170k (± 0.02%) 447,102k (± 0.01%) ~ 447,033k 447,220k p=0.128 n=6
Parse Time 4.09s (± 1.02%) 4.09s (± 1.58%) ~ 4.00s 4.19s p=0.871 n=6
Bind Time 1.76s (± 1.32%) 1.77s (± 0.85%) ~ 1.75s 1.79s p=0.802 n=6
Check Time 18.77s (± 0.45%) 18.71s (± 0.57%) ~ 18.58s 18.82s p=0.298 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.61s (± 0.48%) 24.57s (± 0.61%) ~ 24.40s 24.80s p=0.423 n=6
xstate-main - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 558,084 558,084 ~ ~ ~ p=1.000 n=6
Types 186,415 186,415 ~ ~ ~ p=1.000 n=6
Memory used 494,958k (± 0.03%) 495,014k (± 0.01%) ~ 494,976k 495,082k p=1.000 n=6
Parse Time 3.41s (± 0.80%) 3.41s (± 0.54%) ~ 3.39s 3.43s p=0.807 n=6
Bind Time 1.20s (± 0.70%) 1.19s (± 1.54%) ~ 1.17s 1.21s p=1.000 n=6
Check Time 19.77s (± 1.84%) 19.52s (± 0.29%) ~ 19.45s 19.62s p=0.936 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.38s (± 1.45%) 24.12s (± 0.24%) ~ 24.05s 24.19s p=0.568 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/59803/merge:

Everything looks good!

@jakebailey jakebailey merged commit d8f6aa7 into microsoft:main Feb 20, 2025
32 checks passed
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants