Skip to content

[test] fix compilation performance issues in validation-test/stdlib/UnsafeBufferPointerSlices.swift #64393

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 2 commits into from
Mar 17, 2023

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Mar 15, 2023

This fixes a compiler performance issue in validation-test/stdlib/UnsafeBufferPointerSlices.swift. Using reduce expressions in expectEqual() causes very slow expression resolution. Changed the tests to something simpler, and re-enabled the test.

Resolves rdar://106656555, and undoes #64352.

@glessard glessard requested a review from Azoy March 15, 2023 18:00
@glessard
Copy link
Contributor Author

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Mar 15, 2023

@glessard Could you please reduce this to a standalone example we could add to the perf suite?

@glessard
Copy link
Contributor Author

@xedin will do.

@glessard
Copy link
Contributor Author

@swift-ci please test windows platform

@glessard glessard merged commit d6a0268 into swiftlang:main Mar 17, 2023
@glessard glessard deleted the rdar106656555-slowtest branch March 17, 2023 17:22
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.

3 participants