Closed ashfurrow closed 4 years ago
CI fail is a dumb style linting thing - other than that, this looks and sounds good to m. Get it green and I'll ship a release 👍
🍏
Thanks @ashfurrow & @orta for quickly resolving this issue. It looks amazing
Rockin'
I've tested this with Artsy's codebase to make sure it still works 👍 It puts the data in an NSString, and uses
characterAtIndex:
Objective-C function calls, which are unlikely to be inlined by the compile. This might incur some performance penalty, but, that's probably fine.I also made some refactors to use less Objective-C runtime stuff and make this easier to maintain. The downside of this approach is that it loads all keys upfront in
init
, which has potential further performance impacts. This now optimizes for creating fewer instances of theKeys
object, since creating each one is more expensive but each key access is free.The refactor is in a separate commit in case you'd like to keep the original implementation. I have verified both commits solve the problem of inlining keys in the binaries.
Fixes #201.