Skip to content

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