Re:Date parsing performance on iOS (NSDateformatter vs sqlite)
by gilgoomesh on Saturday September 07, 2013 @07:48PM
(#6347137)
It does seem as though Apple should implement a separate optimized path for the very common case of ISO-8601 date formats.
Although I'm not sure how many people on iOS need millions of dates parsed.
I did the same with Java's Integer.parseInt(...) method. It is an interesting task to go through.
Now I'll spend the rest of this rainy afternoon playing around with writing a fast ISO date parser :)
Edit: Seems Java's Joda Time library already does parse ISO dates really quickly. 7 seconds for 4 million on my MBP
Edit: A fast custom date parser for ISO dates I just wrote can parse 4 million dates in 150 milliseconds.