Skip to content

Make lower priority inference when source is completely matched in target - #33252

Merged
Anders Hejlsberg (ahejlsberg) merged 6 commits into
masterfrom
fix33131
Sep 5, 2019
Merged

Make lower priority inference when source is completely matched in target#33252
Anders Hejlsberg (ahejlsberg) merged 6 commits into
masterfrom
fix33131

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes#33131.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@weswigham

Wesley Wigham (weswigham) commented Sep 5, 2019

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) run dt
TypeScript Bot (@typescript-bot) user test this
TypeScript Bot (@typescript-bot) pack this for our more ravenous users :V

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Heya Wesley Wigham (@weswigham), I've started to run the tarball bundle task on this PR at 5de180e. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Heya Wesley Wigham (@weswigham), I've started to run the parallelized Definitely Typed test suite on this PR at 5de180e. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Heya Wesley Wigham (@weswigham), I've started to run the parallelized community code test suite on this PR at 5de180e. You can monitor the build here. It should now contribute to this PR's status checks.

@weswigham

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test this because "tets this" isn't a command

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Heya Wesley Wigham (@weswigham), I've started to run the extended test suite on this PR at 5de180e. You can monitor the build here. It should now contribute to this PR's status checks.

@ahejlsberg

Copy link
Copy Markdown
MemberAuthor

TypeScript Bot (@typescript-bot) perf test this

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Heya Anders Hejlsberg (@ahejlsberg), I've started to run the perf test suite on this PR at 5de180e. You can monitor the build here. It should now contribute to this PR's status checks.

Update: The results are in!

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Wesley Wigham (@weswigham), 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/42865/artifacts?artifactName=tgz&fileId=B4D2DA4BFA4D7649E338946AF0D126AFA9B454E084859514E0EBE4A87EDA3F8802&fileName=/typescript-3.7.0-insiders.20190905.tgz"
}
}

and then running npm install.

@typescript-bot

Copy link
Copy Markdown
Contributor

The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master.

@weswigham

Copy link
Copy Markdown
Member

Ack, a single lint failure. The user baselines look ok, though.

@typescript-bot

Copy link
Copy Markdown
Contributor

Anders Hejlsberg (@ahejlsberg)
The results of the perf run you requested are in!

Here they are:

Comparison Report - master..33252

Metricmaster33252DeltaBestWorst
Angular - node (v12.1.0, x64)
Memory used325,572k (± 0.01%)325,851k (± 0.01%)+279k (+ 0.09%)325,756k325,952k
Parse Time1.59s (± 0.52%)1.59s (± 1.00%)-0.00s (- 0.25%)1.56s1.63s
Bind Time0.83s (± 0.99%)0.82s (± 1.20%)-0.01s (- 1.09%)0.79s0.84s
Check Time4.50s (± 0.67%)4.46s (± 0.54%)-0.04s (- 0.84%)4.41s4.52s
Emit Time5.62s (± 0.91%)5.60s (± 0.51%)-0.02s (- 0.28%)5.55s5.67s
Total Time12.54s (± 0.61%)12.47s (± 0.48%)-0.07s (- 0.54%)12.35s12.59s
Monaco - node (v12.1.0, x64)
Memory used345,948k (± 0.02%)345,921k (± 0.01%)-27k (- 0.01%)345,805k346,006k
Parse Time1.31s (± 0.52%)1.31s (± 0.63%)0.00s ( 0.00%)1.29s1.33s
Bind Time0.72s (± 1.15%)0.72s (± 0.94%)-0.00s (- 0.00%)0.71s0.74s
Check Time4.53s (± 0.28%)4.51s (± 0.52%)-0.02s (- 0.35%)4.48s4.58s
Emit Time3.03s (± 0.78%)3.03s (± 0.81%)0.00s ( 0.00%)2.98s3.08s
Total Time9.60s (± 0.19%)9.59s (± 0.48%)-0.02s (- 0.17%)9.50s9.70s
TFS - node (v12.1.0, x64)
Memory used301,355k (± 0.02%)301,407k (± 0.02%)+52k (+ 0.02%)301,209k301,510k
Parse Time1.03s (± 0.91%)1.03s (± 0.54%)+0.00s (+ 0.19%)1.02s1.04s
Bind Time0.67s (± 0.78%)0.67s (± 0.67%)-0.00s (- 0.15%)0.66s0.68s
Check Time4.11s (± 1.04%)4.11s (± 0.88%)0.00s ( 0.00%)4.04s4.20s
Emit Time3.12s (± 0.78%)3.10s (± 1.01%)-0.02s (- 0.55%)3.04s3.15s
Total Time8.93s (± 0.70%)8.91s (± 0.64%)-0.02s (- 0.19%)8.78s9.04s
Angular - node (v8.9.0, x64)
Memory used344,227k (± 0.02%)344,512k (± 0.02%)+284k (+ 0.08%)344,408k344,656k
Parse Time2.08s (± 0.60%)2.07s (± 0.33%)-0.00s (- 0.10%)2.06s2.09s
Bind Time0.86s (± 0.55%)0.86s (± 1.22%)+0.00s (+ 0.35%)0.84s0.88s
Check Time5.33s (± 0.80%)5.33s (± 0.69%)+0.01s (+ 0.11%)5.26s5.41s
Emit Time6.40s (± 1.92%)6.47s (± 0.63%)+0.07s (+ 1.13%)6.37s6.55s
Total Time14.66s (± 0.93%)14.74s (± 0.39%)+0.08s (+ 0.55%)14.60s14.86s
Monaco - node (v8.9.0, x64)
Memory used363,669k (± 0.02%)363,743k (± 0.01%)+75k (+ 0.02%)363,670k363,862k
Parse Time1.62s (± 0.71%)1.62s (± 0.45%)+0.00s (+ 0.25%)1.61s1.64s
Bind Time0.93s (± 0.75%)0.93s (± 1.32%)+0.00s (+ 0.11%)0.91s0.96s
Check Time5.39s (± 1.07%)5.40s (± 0.86%)+0.01s (+ 0.20%)5.26s5.48s
Emit Time3.46s (± 3.21%)3.50s (± 2.64%)+0.04s (+ 1.10%)3.13s3.60s
Total Time11.39s (± 0.60%)11.45s (± 0.94%)+0.05s (+ 0.47%)11.10s11.63s
TFS - node (v8.9.0, x64)
Memory used317,703k (± 0.02%)317,689k (± 0.01%)-14k (- 0.00%)317,609k317,784k
Parse Time1.30s (± 0.63%)1.30s (± 0.68%)+0.00s (+ 0.08%)1.29s1.33s
Bind Time0.82s (± 4.09%)0.79s (± 5.60%)-0.03s (- 3.90%)0.70s0.86s
Check Time4.63s (± 1.02%)4.67s (± 1.58%)+0.05s (+ 0.99%)4.53s4.82s
Emit Time3.26s (± 0.65%)3.24s (± 0.67%)-0.02s (- 0.58%)3.18s3.29s
Total Time10.01s (± 0.39%)10.01s (± 0.41%)-0.01s (- 0.06%)9.91s10.08s
Angular - node (v8.9.0, x86)
Memory used195,004k (± 0.01%)195,123k (± 0.03%)+119k (+ 0.06%)194,985k195,270k
Parse Time2.01s (± 0.72%)2.00s (± 0.34%)-0.01s (- 0.40%)1.99s2.02s
Bind Time0.99s (± 0.45%)0.99s (± 0.67%)+0.00s (+ 0.20%)0.98s1.01s
Check Time4.86s (± 0.74%)4.84s (± 0.54%)-0.02s (- 0.39%)4.78s4.92s
Emit Time6.17s (± 0.58%)6.15s (± 0.48%)-0.03s (- 0.44%)6.09s6.21s
Total Time14.03s (± 0.48%)13.98s (± 0.30%)-0.05s (- 0.35%)13.90s14.09s
Monaco - node (v8.9.0, x86)
Memory used203,226k (± 0.02%)203,180k (± 0.02%)-46k (- 0.02%)203,047k203,244k
Parse Time1.68s (± 0.72%)1.68s (± 0.63%)+0.01s (+ 0.54%)1.67s1.71s
Bind Time0.75s (± 0.63%)0.75s (± 1.00%)+0.00s (+ 0.13%)0.74s0.77s
Check Time5.17s (± 0.46%)5.14s (± 0.43%)-0.03s (- 0.48%)5.10s5.21s
Emit Time3.35s (± 0.57%)3.37s (± 1.25%)+0.02s (+ 0.48%)3.32s3.52s
Total Time10.95s (± 0.30%)10.95s (± 0.41%)-0.00s (- 0.03%)10.89s11.10s
TFS - node (v8.9.0, x86)
Memory used178,545k (± 0.01%)178,511k (± 0.02%)-35k (- 0.02%)178,465k178,636k
Parse Time1.37s (± 0.84%)1.37s (± 0.74%)-0.00s (- 0.29%)1.35s1.39s
Bind Time0.67s (± 0.71%)0.67s (± 1.20%)+0.00s (+ 0.15%)0.65s0.69s
Check Time4.54s (± 1.05%)4.51s (± 0.36%)-0.02s (- 0.53%)4.48s4.55s
Emit Time3.04s (± 1.12%)3.00s (± 0.80%)-0.05s (- 1.48%)2.95s3.07s
Total Time9.62s (± 0.90%)9.54s (± 0.27%)-0.08s (- 0.81%)9.50s9.62s
Angular - node (v9.0.0, x64)
Memory used343,848k (± 0.02%)344,142k (± 0.01%)+294k (+ 0.09%)344,047k344,237k
Parse Time1.80s (± 0.71%)1.80s (± 0.44%)-0.00s (- 0.06%)1.78s1.82s
Bind Time0.82s (± 1.11%)0.82s (± 0.89%)-0.00s (- 0.12%)0.80s0.83s
Check Time5.12s (± 0.84%)5.08s (± 0.95%)-0.03s (- 0.63%)5.00s5.22s
Emit Time6.14s (± 1.49%)6.10s (± 1.59%)-0.03s (- 0.55%)5.86s6.30s
Total Time13.88s (± 0.61%)13.81s (± 0.81%)-0.06s (- 0.47%)13.55s14.04s
Monaco - node (v9.0.0, x64)
Memory used363,388k (± 0.01%)363,438k (± 0.01%)+50k (+ 0.01%)363,347k363,545k
Parse Time1.39s (± 0.42%)1.38s (± 0.63%)-0.00s (- 0.36%)1.37s1.41s
Bind Time0.87s (± 0.77%)0.87s (± 1.23%)+0.00s (+ 0.46%)0.86s0.91s
Check Time5.46s (± 0.35%)5.48s (± 0.66%)+0.02s (+ 0.35%)5.40s5.56s
Emit Time3.06s (± 0.72%)3.06s (± 1.11%)0.00s ( 0.00%)3.03s3.16s
Total Time10.78s (± 0.33%)10.80s (± 0.71%)+0.02s (+ 0.19%)10.68s11.03s
TFS - node (v9.0.0, x64)
Memory used317,431k (± 0.01%)317,439k (± 0.01%)+8k (+ 0.00%)317,357k317,511k
Parse Time1.10s (± 1.13%)1.09s (± 0.41%)-0.01s (- 1.09%)1.08s1.10s
Bind Time0.66s (± 0.67%)0.66s (± 0.67%)0.00s ( 0.00%)0.65s0.67s
Check Time4.68s (± 0.74%)4.68s (± 0.66%)-0.01s (- 0.17%)4.61s4.76s
Emit Time3.41s (± 1.14%)3.35s (± 1.76%)-0.06s (- 1.67%)3.15s3.42s
Total Time9.86s (± 0.68%)9.78s (± 0.79%)-0.08s (- 0.78%)9.53s9.94s
Angular - node (v9.0.0, x86)
Memory used195,113k (± 0.02%)195,270k (± 0.02%)+158k (+ 0.08%)195,185k195,340k
Parse Time1.74s (± 0.90%)1.73s (± 1.06%)-0.01s (- 0.29%)1.70s1.78s
Bind Time0.95s (± 1.26%)0.95s (± 1.07%)-0.00s (- 0.53%)0.92s0.97s
Check Time4.54s (± 0.50%)4.56s (± 0.86%)+0.01s (+ 0.33%)4.50s4.65s
Emit Time5.90s (± 0.76%)5.89s (± 0.80%)-0.01s (- 0.22%)5.79s6.00s
Total Time13.13s (± 0.52%)13.12s (± 0.70%)-0.01s (- 0.05%)12.97s13.38s
Monaco - node (v9.0.0, x86)
Memory used203,240k (± 0.02%)203,265k (± 0.02%)+25k (+ 0.01%)203,144k203,339k
Parse Time1.43s (± 0.93%)1.43s (± 0.59%)-0.00s (- 0.28%)1.41s1.45s
Bind Time0.69s (± 1.13%)0.69s (± 0.50%)-0.00s (- 0.29%)0.68s0.69s
Check Time5.00s (± 0.60%)5.01s (± 0.50%)+0.01s (+ 0.16%)4.96s5.08s
Emit Time3.28s (± 0.61%)3.27s (± 0.73%)-0.01s (- 0.46%)3.21s3.34s
Total Time10.41s (± 0.43%)10.39s (± 0.35%)-0.02s (- 0.20%)10.33s10.47s
TFS - node (v9.0.0, x86)
Memory used178,566k (± 0.02%)178,600k (± 0.02%)+34k (+ 0.02%)178,481k178,677k
Parse Time1.14s (± 0.99%)1.13s (± 0.60%)-0.01s (- 0.44%)1.11s1.14s
Bind Time0.61s (± 0.78%)0.61s (± 0.56%)0.00s ( 0.00%)0.61s0.62s
Check Time4.40s (± 0.54%)4.41s (± 0.90%)+0.00s (+ 0.11%)4.34s4.49s
Emit Time2.93s (± 0.72%)2.93s (± 0.64%)-0.00s (- 0.03%)2.90s2.98s
Total Time9.08s (± 0.42%)9.08s (± 0.52%)0.00s ( 0.00%)8.99s9.17s
System
Machine Namets-ci-ubuntu
Platformlinux 4.4.0-161-generic
Architecturex64
Available Memory16 GB
Available Memory13 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v12.1.0, x64)
  • node (v8.9.0, x64)
  • node (v8.9.0, x86)
  • node (v9.0.0, x64)
  • node (v9.0.0, x86)
Scenarios
  • Angular - node (v12.1.0, x64)
  • Angular - node (v8.9.0, x64)
  • Angular - node (v8.9.0, x86)
  • Angular - node (v9.0.0, x64)
  • Angular - node (v9.0.0, x86)
  • Monaco - node (v12.1.0, x64)
  • Monaco - node (v8.9.0, x64)
  • Monaco - node (v8.9.0, x86)
  • Monaco - node (v9.0.0, x64)
  • Monaco - node (v9.0.0, x86)
  • TFS - node (v12.1.0, x64)
  • TFS - node (v8.9.0, x64)
  • TFS - node (v8.9.0, x86)
  • TFS - node (v9.0.0, x64)
  • TFS - node (v9.0.0, x86)
BenchmarkNameIterations
Current3325210
Baselinemaster10

@fatcerberus

Copy link
Copy Markdown

pack this for our more ravenous users :V

🐽

@ericanderson

Copy link
Copy Markdown
Contributor

TypeScript Bot (@typescript-bot) cherry-pick this into release-3.6

@sandersn

Copy link
Copy Markdown
Member

sudo TypeScript Bot (@typescript-bot) cherry-pick this into release-3.6

@sandersn

Copy link
Copy Markdown
Member

(Thanks for the attempt Eric Anderson (@ericanderson), but typescript-bot has a hardcoded list of people it listens to.)

@sandersn

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) cherry-pick this into release-3.6

@sandersn

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) cherry-pick this to release-3.6

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Nathan Shively-Sanders (@sandersn), I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.6 manually.

@sandersn

Copy link
Copy Markdown
Member

Whew! TypeScript Bot (@typescript-bot), I thought you were dead!

(Hooray for bad natural language parsers.)

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Nathan Shively-Sanders (@sandersn), I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.6 manually.

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Nathan Shively-Sanders (@sandersn), I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.6 manually.

Nathan Shively-Sanders (sandersn) pushed a commit that referenced this pull request Sep 6, 2019
Make lower priority inference when source is completely matched in target
@sandersn

Copy link
Copy Markdown
Member

Fine, I cherry-picked it myself, TypeScript Bot (@typescript-bot). It's in release-3.6 now.

@fatcerberus

Copy link
Copy Markdown

typescript-bot seems to be glitchy lately. Delayed reactions to commands, not closing issues it claims to have closed, etc.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RxJS type inference fails in 3.6.2

6 participants

@ahejlsberg@weswigham@typescript-bot@fatcerberus@ericanderson@sandersn