2 ms·
I wrote a blog post showing some of the bigger optimizations: http://codeinhindsight.blogspot.com/2011/10/down-rabbit-hole-of-optimization.html http://codeinhin
by kstenerud 15y ago
I wrote a blog post showing some of the bigger optimizations: http://codeinhindsight.blogspot.com/2011/10/down-rabbit-hole-of-optimization.html http://codeinhindsight.blogspot.com/2011/10/down-rabbit-hole...
Aside from the pokey NumberFormatter and "replaceOccurrencesOfString" calls, the biggest source of slowdown was the Objective-C calling mechanism itself. After that, it came down to minimizing even the CF API calls. They work fine, but they are generic routines, and you can get better speed by rolling your own specialized code for buffer management and such.
In the end, the only thing I left to CF (aside from constructing the final objects) was unicode conversion.