For those asleep at 2am: I blogged about Swift in my normal bombastic style which isn’t getting old, nope. http://blog.wilshipley.com/2016/05/pimp-my-code-book-2-swift-and-dynamism.html …
-
-
@mpweiher@phink0@wilshipley That’s very interesting. Have you tried profiling it? Bridging overhead? -
@mjtsai@mpweiher@wilshipley Here's the profile (and for completeness the ObjC simple/naive/ugly filter category)pic.twitter.com/lbeIS8sEg8
- View other replies
-
@phink0@mpweiher@wilshipley The Foundation -hasPrefix: does an exact compare; maybe Swift stdlib one does a fancy Unicode compare. -
@mjtsai@phink0@mpweiher@wilshipley Yeah. Some Unicode operations are also implemented naively and make unnecessary extra copies. - View other replies
-
@jckarter@mjtsai@phink0@wilshipley Dunno, I see “CFStringFindWithOptionsAndLocale()” in the profile and also when I profile -hasPrefix: - View other replies
-
@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
-
- Show more
-
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.
Wil Shipley
Marco Scheurer
Marcel Weiher
Michael Tsai
Joe Groff