Skip to content

Fix the speed of the slow builtin function unit tests in TIv2. #2143

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

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

Fix the speed of the slow builtin function unit tests in TIv2.

Some of the tests exercise a flaw in unification caching where an InferImplicitParametrics call may repeatedly resolve the same heavy type variable within the scope of one resolution call that has a filter. The general caching logic will refuse to capture the result that was influenced by the filter.

This change makes it so that such globally useless results can be retained within the scope of one overarching resolution request, thereby getting the builtin test suite from ~23 sec to ~3 sec.

@copybara-service copybara-service bot closed this May 9, 2025
@copybara-service copybara-service bot deleted the test_756087705 branch May 9, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants