Remove allowComplexConstraintInference in inferTypes#54815
Remove allowComplexConstraintInference in inferTypes#54815jakebailey merged 1 commit intomicrosoft:mainfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
| // (in addition to the extra stack depth here) which, in turn, can push the already close process over its limit. | ||
| // TL;DR: If we ever become generally more memory efficient (or our resource budget ever increases), we should just | ||
| // remove this `allowComplexConstraintInference` flag. | ||
| allowComplexConstraintInference = false; |
There was a problem hiding this comment.
quite wild that it was only ever set to false and never reset back to true 😅
There was a problem hiding this comment.
It's local to this infer stack, so it's not like the worst thing in the world.
There was a problem hiding this comment.
Aaah, makes sense - I missed that this is a closure variable.
There was a problem hiding this comment.
Yeah, it was basically used so we'd only explore one level of this kind of inference per infer call. So long as RWC no longer OOMs, we're good. We didn't need this to stop runaway memory utilization, but rather just to reduce it by like 5% because RWC at the time was just above memory limits (and we'd has issues with, eg, UMDWeb and fp-ts OOM'ing consistently) with the added inference, and looking into across-the-board memory utilization, rather than just limiting the most recent change, was painful.
|
@typescript-bot test this |
|
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at b0bca3d. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at b0bca3d. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the extended test suite on this PR at b0bca3d. You can monitor the build here. |
|
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at b0bca3d. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the perf test suite on this PR at b0bca3d. You can monitor the build here. Update: The results are in! |
|
@jakebailey Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Something interesting changed - please have a look. Details
|
|
@jakebailey Here they are:
CompilerComparison Report - main..54815
System
Hosts
Scenarios
TSServerComparison Report - main..54815
System
Hosts
Scenarios
StartupComparison Report - main..54815
System
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hey @jakebailey, the results of running the DT tests are ready. |
|
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
|
Seems like everything passes? Even RWC? Probably not a good idea to stick post-beta though. |
|
Merging, since it's early 5.3 and I feel safer doing so. |
Fixes #27244
This TODO was added many many years ago but was never revisited; the tests pass with this removed but I'm curious what the extended test suites say.