Closed peyton closed 8 years ago
Hey, NS*Formatter initialization is expensive. This PR caches formatters in thread-local storage.
Tested a few methods on my MBP with -Os optimization:
.isNumeric()
.toDouble()
.toDate()
With thousands of strings, the speedup amounts to seconds.
Hey, NS*Formatter initialization is expensive. This PR caches formatters in thread-local storage.
Tested a few methods on my MBP with -Os optimization:
.isNumeric()
.toDouble()
.toDate()
With thousands of strings, the speedup amounts to seconds.