@wilshipley @mpweiher Nice post as usual. Wouldn't rewriting in ObjC also make for better code? Filter map & foreach in ObjC? Not so hard
@jckarter @mjtsai @phink0 @wilshipley Dunno, I see “CFStringFindWithOptionsAndLocale()” in the profile and also when I profile -hasPrefix:
-
-
@mpweiher@mjtsai@phink0@wilshipley By "naive" I mean "copy into a CF string and hand off to a CF fn". Super naive - View other replies
-
- View other replies
-
- View other replies
-
- View other replies
-
-
-
- View other replies
- Show more
-
-
-
@mpweiher@jckarter@phink0@wilshipley If you look at the code, Swift is using kCFCompareNonliteral and NSString is not. -
@mjtsai@jckarter@phink0@wilshipley I no longer have access to Foundation source code… -
@mpweiher@jckarter@phink0@wilshipley You can see in Hopper that it’s only passing NSAnchoredSearch. -
@mjtsai@jckarter@phink0@wilshipley Just ran some tests and kCFCompareNonliteral does not make a difference with simple prefix comparison
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Marco Scheurer
Marcel Weiher
Wil Shipley
Michael Tsai
Joe Groff
Guy English