swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.36k stars 150 forks source link

String+Path parsing performance improvements #927

Closed jrflat closed 1 day ago

jrflat commented 1 day ago

Improved some String+Path functions' performance with the following changes:

Non-implementation related:

Results: We generally see 2-6x speedup in the respective functions.

Old vs New String

String+Path Performance Old vs New

NSString vs String

String+Path Performance NSString vs String

jrflat commented 1 day ago

@swift-ci please test