Skip to content
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

Distribute mapped types over array/tuple intersections #57801

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Conversation

ahejlsberg
Copy link
Member

Fixes #57744 as described here.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Mar 16, 2024
@ahejlsberg
Copy link
Member Author

@typescript-bot test top200
@typescript-bot user test this
@typescript-bot run dt
@typescript-bot perf test this faster

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 16, 2024

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

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

@typescript-bot
Copy link
Collaborator

Hey @ahejlsberg, the results of running the DT tests are ready.
Everything looks the same!
You can check the log here.

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the user test suite comparing main and refs/pull/57801/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Unknown failure"

Otherwise...

Everything looks good!

@typescript-bot
Copy link
Collaborator

@ahejlsberg
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
Angular - node (v18.15.0, x64)
Memory used 295,730k (± 0.01%) 295,709k (± 0.01%) ~ 295,644k 295,730k p=0.378 n=6
Parse Time 2.66s (± 0.28%) 2.66s (± 0.24%) ~ 2.65s 2.67s p=0.718 n=6
Bind Time 0.83s (± 0.49%) 0.83s (± 0.62%) ~ 0.82s 0.83s p=0.595 n=6
Check Time 8.19s (± 0.14%) 8.21s (± 0.47%) ~ 8.16s 8.27s p=0.569 n=6
Emit Time 7.16s (± 0.68%) 7.14s (± 0.14%) ~ 7.13s 7.16s p=0.616 n=6
Total Time 18.84s (± 0.26%) 18.84s (± 0.16%) ~ 18.81s 18.89s p=1.000 n=6
Compiler-Unions - node (v18.15.0, x64)
Memory used 191,937k (± 0.06%) 193,209k (± 0.90%) +1,273k (+ 0.66%) 191,939k 195,513k p=0.020 n=6
Parse Time 1.35s (± 0.47%) 1.36s (± 1.20%) ~ 1.33s 1.38s p=0.236 n=6
Bind Time 0.72s (± 0.00%) 0.72s (± 0.00%) ~ 0.72s 0.72s p=1.000 n=6
Check Time 9.47s (± 0.71%) 9.48s (± 0.72%) ~ 9.39s 9.59s p=0.423 n=6
Emit Time 2.66s (± 0.31%) 2.65s (± 0.57%) ~ 2.63s 2.67s p=1.000 n=6
Total Time 14.20s (± 0.46%) 14.22s (± 0.39%) ~ 14.12s 14.29s p=0.297 n=6
Monaco - node (v18.15.0, x64)
Memory used 347,358k (± 0.00%) 347,366k (± 0.01%) ~ 347,344k 347,399k p=0.630 n=6
Parse Time 2.47s (± 0.49%) 2.48s (± 0.59%) ~ 2.46s 2.50s p=0.325 n=6
Bind Time 0.92s (± 0.56%) 0.92s (± 0.59%) ~ 0.92s 0.93s p=0.640 n=6
Check Time 7.01s (± 0.35%) 7.02s (± 0.21%) ~ 7.00s 7.03s p=0.869 n=6
Emit Time 4.07s (± 0.80%) 4.06s (± 0.29%) ~ 4.04s 4.07s p=0.935 n=6
Total Time 14.48s (± 0.33%) 14.48s (± 0.21%) ~ 14.45s 14.53s p=0.872 n=6
TFS - node (v18.15.0, x64)
Memory used 302,721k (± 0.00%) 302,728k (± 0.01%) ~ 302,711k 302,756k p=0.520 n=6
Parse Time 2.02s (± 0.60%) 2.01s (± 1.11%) ~ 1.97s 2.03s p=0.618 n=6
Bind Time 1.00s (± 0.41%) 1.00s (± 1.17%) ~ 0.99s 1.02s p=0.858 n=6
Check Time 6.31s (± 0.43%) 6.29s (± 0.34%) ~ 6.25s 6.31s p=0.224 n=6
Emit Time 3.61s (± 0.43%) 3.61s (± 0.73%) ~ 3.58s 3.64s p=0.682 n=6
Total Time 12.94s (± 0.25%) 12.91s (± 0.28%) ~ 12.87s 12.96s p=0.376 n=6
material-ui - node (v18.15.0, x64)
Memory used 511,368k (± 0.00%) 511,371k (± 0.00%) ~ 511,347k 511,399k p=0.689 n=6
Parse Time 2.65s (± 0.74%) 2.66s (± 0.31%) ~ 2.64s 2.66s p=0.557 n=6
Bind Time 0.98s (± 0.52%) 0.99s (± 0.41%) ~ 0.98s 0.99s p=0.112 n=6
Check Time 17.37s (± 0.69%) 17.34s (± 0.63%) ~ 17.18s 17.50s p=0.936 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 21.00s (± 0.58%) 20.98s (± 0.46%) ~ 20.84s 21.12s p=0.872 n=6
mui-docs - node (v18.15.0, x64)
Memory used 1,798,046k (± 0.00%) 1,798,070k (± 0.00%) ~ 1,798,029k 1,798,122k p=0.229 n=6
Parse Time 6.61s (± 0.63%) 6.63s (± 0.71%) ~ 6.57s 6.71s p=0.195 n=6
Bind Time 2.40s (± 0.57%) 2.39s (± 0.46%) ~ 2.37s 2.40s p=0.554 n=6
Check Time 59.06s (± 0.42%) 59.21s (± 0.33%) ~ 59.00s 59.55s p=0.378 n=6
Emit Time 0.16s (± 3.16%) 0.16s (± 0.00%) ~ 0.16s 0.16s p=0.174 n=6
Total Time 68.23s (± 0.40%) 68.39s (± 0.28%) ~ 68.22s 68.74s p=0.149 n=6
self-build-src - node (v18.15.0, x64)
Memory used 2,397,244k (± 0.03%) 2,397,215k (± 0.03%) ~ 2,396,503k 2,398,260k p=1.000 n=6
Parse Time 5.01s (± 1.05%) 5.01s (± 0.95%) ~ 4.95s 5.06s p=0.574 n=6
Bind Time 1.91s (± 1.03%) 1.91s (± 1.16%) ~ 1.89s 1.95s p=0.935 n=6
Check Time 33.48s (± 0.32%) 33.52s (± 0.23%) ~ 33.44s 33.65s p=0.574 n=6
Emit Time 2.72s (± 1.39%) 2.72s (± 1.54%) ~ 2.67s 2.78s p=0.936 n=6
Total Time 43.14s (± 0.21%) 43.19s (± 0.29%) ~ 43.03s 43.37s p=0.748 n=6
self-compiler - node (v18.15.0, x64)
Memory used 415,515k (± 0.01%) 415,464k (± 0.00%) -51k (- 0.01%) 415,447k 415,487k p=0.020 n=6
Parse Time 2.84s (± 0.66%) 2.82s (± 0.92%) ~ 2.79s 2.86s p=0.167 n=6
Bind Time 1.06s (± 0.38%) 1.07s (± 0.92%) ~ 1.06s 1.08s p=0.071 n=6
Check Time 15.30s (± 0.55%) 15.30s (± 0.37%) ~ 15.25s 15.39s p=0.936 n=6
Emit Time 1.16s (± 0.65%) 1.15s (± 0.65%) ~ 1.14s 1.16s p=0.195 n=6
Total Time 20.36s (± 0.33%) 20.34s (± 0.38%) ~ 20.26s 20.44s p=0.687 n=6
vscode - node (v18.15.0, x64)
Memory used 2,880,619k (± 0.00%) 2,880,620k (± 0.00%) ~ 2,880,572k 2,880,663k p=0.936 n=6
Parse Time 10.81s (± 0.26%) 10.80s (± 0.27%) ~ 10.75s 10.83s p=1.000 n=6
Bind Time 3.45s (± 0.51%) 3.46s (± 0.47%) ~ 3.45s 3.49s p=0.324 n=6
Check Time 61.24s (± 0.19%) 61.21s (± 0.33%) ~ 61.02s 61.59s p=0.377 n=6
Emit Time 16.50s (± 1.55%) 16.38s (± 0.57%) ~ 16.26s 16.49s p=0.521 n=6
Total Time 92.01s (± 0.40%) 91.85s (± 0.21%) ~ 91.65s 92.21s p=0.378 n=6
webpack - node (v18.15.0, x64)
Memory used 406,530k (± 0.02%) 406,481k (± 0.02%) ~ 406,399k 406,581k p=0.230 n=6
Parse Time 3.19s (± 0.90%) 3.20s (± 0.55%) ~ 3.17s 3.22s p=0.935 n=6
Bind Time 1.37s (± 0.85%) 1.38s (± 0.59%) ~ 1.38s 1.40s p=0.056 n=6
Check Time 14.25s (± 0.16%) 14.22s (± 0.40%) ~ 14.12s 14.29s p=0.197 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 18.82s (± 0.23%) 18.80s (± 0.29%) ~ 18.69s 18.84s p=0.870 n=6
xstate - node (v18.15.0, x64)
Memory used 513,261k (± 0.01%) 513,243k (± 0.01%) ~ 513,156k 513,344k p=0.810 n=6
Parse Time 3.28s (± 0.39%) 3.27s (± 0.30%) ~ 3.26s 3.28s p=0.214 n=6
Bind Time 1.54s (± 0.26%) 1.54s (± 0.36%) ~ 1.53s 1.54s p=0.054 n=6
Check Time 2.85s (± 0.60%) 2.85s (± 0.48%) ~ 2.83s 2.87s p=1.000 n=6
Emit Time 0.07s (± 7.03%) 0.07s (± 5.69%) ~ 0.07s 0.08s p=0.595 n=6
Total Time 7.75s (± 0.25%) 7.74s (± 0.28%) ~ 7.70s 7.76s p=0.279 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Angular - node (v18.15.0, x64)
  • Compiler-Unions - node (v18.15.0, x64)
  • Monaco - node (v18.15.0, x64)
  • TFS - node (v18.15.0, x64)
  • material-ui - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@ahejlsberg Here are the results of running the top-repos suite comparing main and refs/pull/57801/merge:

Everything looks good!

@RyanCavanaugh
Copy link
Member

@typescript-bot cherry-pick this to release-5.4

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 18, 2024

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

Command Status Results
cherry-pick this to release-5.4 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

Hey, @RyanCavanaugh! I've created #57832 for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Homomorphic mapped generic array type sometimes no longer seen as an array
4 participants