Skip to content

Speed up roundtrip syntax tests #22653

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
Feb 15, 2019

Conversation

benlangmuir
Copy link
Contributor

Running the unified diff is really slow, so first check if the strings are identical. Speeds up the roundtrip stdlib test by 8x on my machine.

Running the unified diff is really slow, so first check if the strings
are identical. Speeds up the roundtrip stdlib test by 8x on my machine.
@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

@benlangmuir benlangmuir merged commit 29299e8 into swiftlang:master Feb 15, 2019
@benlangmuir benlangmuir deleted the compare-faster branch February 15, 2019 21:15
@jckarter
Copy link
Contributor

Would it be overly clever to shell out to the native diff program if one is present?

@benlangmuir
Copy link
Contributor Author

@harlanhaskins mentioned that we switched away from diff because of Windows

@benlangmuir
Copy link
Contributor Author

Otherwsie, no that would be completely reasonable IMO.

@jckarter
Copy link
Contributor

Sure, hence the "if one is present".

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.

2 participants