swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.4k stars 160 forks source link

String+Path parsing performance improvements #927

Closed jrflat closed 1 month ago

jrflat commented 1 month 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 month ago

@swift-ci please test