Skip to content

Forward intersection state flag to conditional type target check #50620

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

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

andrewbranch
Copy link
Member

Fixes #50619

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 2, 2022
@andrewbranch
Copy link
Member Author

@typescript-bot user test this inline
@typescript-bot run dt
@typescript-bot test top100
@typescript-bot perf test faster

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 2, 2022

Heya @andrewbranch, I've started to run the diff-based user code test suite on this PR at 4635cdc. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 2, 2022

Heya @andrewbranch, I've started to run the diff-based user code test suite on this PR at 4635cdc. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 2, 2022

Heya @andrewbranch, I've started to run the abridged perf test suite on this PR at 4635cdc. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 2, 2022

Heya @andrewbranch, I've started to run the parallelized Definitely Typed test suite on this PR at 4635cdc. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

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

Everything looks good!

@typescript-bot
Copy link
Collaborator

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

Here they are:

Comparison Report - main..50620

Metric main 50620 Delta Best Worst
Angular - node (v14.15.1, x64)
Memory used 338,729k (± 0.01%) 338,737k (± 0.01%) +7k (+ 0.00%) 338,699k 338,784k
Parse Time 2.06s (± 0.60%) 2.07s (± 0.70%) +0.01s (+ 0.44%) 2.04s 2.10s
Bind Time 0.79s (± 0.56%) 0.79s (± 0.70%) 0.00s ( 0.00%) 0.78s 0.81s
Check Time 5.84s (± 0.21%) 5.83s (± 0.59%) -0.01s (- 0.26%) 5.76s 5.93s
Emit Time 6.15s (± 0.84%) 6.16s (± 0.42%) +0.01s (+ 0.13%) 6.09s 6.21s
Total Time 14.84s (± 0.44%) 14.85s (± 0.30%) +0.01s (+ 0.05%) 14.76s 14.96s
Compiler-Unions - node (v14.15.1, x64)
Memory used 192,642k (± 0.03%) 192,660k (± 0.01%) +18k (+ 0.01%) 192,610k 192,692k
Parse Time 0.85s (± 0.91%) 0.85s (± 0.65%) +0.00s (+ 0.35%) 0.84s 0.87s
Bind Time 0.49s (± 1.03%) 0.49s (± 0.75%) +0.00s (+ 0.21%) 0.48s 0.49s
Check Time 6.68s (± 0.57%) 6.75s (± 0.59%) +0.06s (+ 0.96%) 6.66s 6.83s
Emit Time 2.41s (± 0.86%) 2.47s (± 4.22%) +0.06s (+ 2.57%) 2.38s 2.88s
Total Time 10.43s (± 0.37%) 10.56s (± 1.09%) +0.13s (+ 1.25%) 10.38s 10.97s
Monaco - node (v14.15.1, x64)
Memory used 326,516k (± 0.01%) 326,531k (± 0.01%) +15k (+ 0.00%) 326,475k 326,579k
Parse Time 1.57s (± 0.95%) 1.57s (± 0.53%) +0.00s (+ 0.25%) 1.56s 1.60s
Bind Time 0.72s (± 0.51%) 0.73s (± 1.19%) +0.00s (+ 0.41%) 0.71s 0.75s
Check Time 5.72s (± 0.65%) 5.70s (± 0.37%) -0.02s (- 0.33%) 5.65s 5.74s
Emit Time 3.32s (± 0.72%) 3.32s (± 0.60%) -0.00s (- 0.12%) 3.27s 3.35s
Total Time 11.33s (± 0.52%) 11.32s (± 0.31%) -0.01s (- 0.12%) 11.25s 11.40s
TFS - node (v14.15.1, x64)
Memory used 289,656k (± 0.01%) 289,661k (± 0.01%) +5k (+ 0.00%) 289,610k 289,684k
Parse Time 1.30s (± 0.47%) 1.31s (± 0.71%) +0.01s (+ 1.00%) 1.30s 1.33s
Bind Time 0.79s (± 0.70%) 0.80s (± 0.46%) +0.00s (+ 0.51%) 0.79s 0.80s
Check Time 5.36s (± 0.38%) 5.37s (± 0.47%) +0.01s (+ 0.17%) 5.31s 5.44s
Emit Time 3.60s (± 0.82%) 3.57s (± 0.65%) -0.03s (- 0.89%) 3.53s 3.62s
Total Time 11.05s (± 0.35%) 11.04s (± 0.33%) -0.01s (- 0.11%) 10.95s 11.10s
material-ui - node (v14.15.1, x64)
Memory used 436,458k (± 0.01%) 436,331k (± 0.06%) -127k (- 0.03%) 435,269k 436,525k
Parse Time 1.86s (± 0.42%) 1.86s (± 0.45%) -0.00s (- 0.00%) 1.84s 1.88s
Bind Time 0.58s (± 0.90%) 0.58s (± 0.96%) -0.00s (- 0.17%) 0.57s 0.59s
Check Time 12.86s (± 1.02%) 12.91s (± 0.94%) +0.04s (+ 0.32%) 12.70s 13.24s
Emit Time 0.00s (± 0.00%) 0.00s (±222.80%) 🔻+0.00s (+ ∞%) 0.00s 0.01s
Total Time 15.31s (± 0.86%) 15.35s (± 0.80%) +0.04s (+ 0.27%) 15.15s 15.69s
xstate - node (v14.15.1, x64)
Memory used 546,727k (± 0.00%) 546,723k (± 0.00%) -4k (- 0.00%) 546,685k 546,756k
Parse Time 2.59s (± 0.34%) 2.59s (± 0.29%) -0.00s (- 0.12%) 2.57s 2.61s
Bind Time 0.97s (± 0.54%) 0.97s (± 1.39%) 0.00s ( 0.00%) 0.96s 1.02s
Check Time 1.52s (± 0.76%) 1.52s (± 0.58%) -0.00s (- 0.07%) 1.51s 1.54s
Emit Time 0.07s (± 0.00%) 0.07s (± 0.00%) 0.00s ( 0.00%) 0.07s 0.07s
Total Time 5.16s (± 0.36%) 5.16s (± 0.28%) +0.00s (+ 0.02%) 5.13s 5.19s
System
Machine Namets-ci-ubuntu
Platformlinux 4.4.0-210-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v14.15.1, x64)
Scenarios
  • Angular - node (v14.15.1, x64)
  • Compiler-Unions - node (v14.15.1, x64)
  • Monaco - node (v14.15.1, x64)
  • TFS - node (v14.15.1, x64)
  • material-ui - node (v14.15.1, x64)
  • xstate - node (v14.15.1, x64)
Benchmark Name Iterations
Current 50620 10
Baseline main 10

Developer Information:

Download Benchmark

@andrewbranch andrewbranch added this to the TypeScript 4.8.3 milestone Sep 2, 2022
@typescript-bot typescript-bot added For Milestone Bug PRs that fix a bug with a specific milestone and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 2, 2022
@typescript-bot
Copy link
Collaborator

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

Everything looks good!

@andrewbranch
Copy link
Member Author

@ahejlsberg look ok for 4.8.3?

@andrewbranch
Copy link
Member Author

Same question for the #50621 cherry-pick (same problem, different call site, I guess)

@andrewbranch
Copy link
Member Author

@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 7, 2022

Heya @andrewbranch, I've started to run the tarball bundle task on this PR at 4635cdc. You can monitor the build here.

@andrewbranch
Copy link
Member Author

@typescript-bot cherry-pick to release-4.8

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 7, 2022

Heya @andrewbranch, I've started to run the task to cherry-pick this into release-4.8 on this PR at 4635cdc. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

Hey @andrewbranch, I've opened #50676 for you.

@typescript-bot
Copy link
Collaborator

Hey @andrewbranch, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/133667/artifacts?artifactName=tgz&fileId=09AF2876D7372115C09E6DCAE8350846F3EBCBEF60B29CDC804C42F4154A0E2102&fileName=/typescript-4.9.0-insiders.20220907.tgz"
    }
}

and then running npm install.

Copy link

@CryptoUnchained CryptoUnchained left a comment

Choose a reason for hiding this comment

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

Seems right to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.8 regression assigning object literal to intersection of conditional type and object type
4 participants