Re: 30x faster JSON date parsing
Re: 30x faster JSON date parsing
- Subject: Re: 30x faster JSON date parsing
- From: Scott Ribe <email@hidden>
- Date: Mon, 09 Sep 2013 17:03:09 -0600
On Sep 9, 2013, at 11:35 AM, Jens Alfke <email@hidden> wrote:
> I’m not sure if you meant that ironically, but it’s absolutely not premature. I’ve run into major NSDateFormatter bottlenecks — as in “hm, over half the time to open this file is spent inside NSDateFormatter” — at least twice, and the author of the blog post I linked to says that he also found it to be a major performance issue in data parsing.
Me too. In my case, there was a lot of redundancy, and I use a lot of C++ and low-level C already, so I got a huge performance gain just from map<const char *, double, staticFuncThatCallsStrCmp> to cache values as they were parsed...
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden