Skip to content
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

[6.0.x] String+Path performance improvements and bug fixes #1013

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Oct 25, 2024

Explanation: Rewrote String+Path functions for performance and functionality. ~2-6x speedup. Fixed bugs where .deletingLastPathComponent() didn't skip over trailing slashes, and where "/path/".deletingLastPathComponent() would delete the entire string instead of leaving the leading "/" (#980).
Scope: Impacts various Foundation types like URL that use these String extensions on file paths.
Original PR: #927
Risk: Low/Med - Well-tested to ensure correct behavior, but does touch several commonly used String extensions.
Testing: Added unit tests, local, swift-ci, stable in main for over a month
Reviewer: @jmschonfeld

Resolves #980 for release/6.0

@jrflat
Copy link
Contributor Author

jrflat commented Oct 25, 2024

@swift-ci please test

@jrflat jrflat merged commit 30f8171 into swiftlang:release/6.0 Oct 30, 2024
3 checks passed
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