Little-known quirk of Foundation: NSStrings created with +stringWithContentsOfFile:… and some other methods don’t currently support CFStringGetCStringPtr. Optimizing for this case in String bridging nets a nice speedup for ‘String(contentsOfFile:,…) + “”’

Follow

LOL. Uh. I guess I fixed the last thing in that benchmark that was O(n) 😂

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!