Hi Jens,

Premature optimization is the root of all evil!

Er, I misspelled:  “very cool, nice job!”

On Sep 9, 2013, at 18:11 , Jens Alfke <j...@mooseyard.com> wrote:

> [..] 
> [fg160,160,160;16:34:40.488| [fg0,128,0;[;NSDateFormatter     took  26.97 µsec
> [fg160,160,160;16:34:48.649| [fg0,128,0;[;CBLParseDate        took   0.47 
> µsec (58x)
> 
> Now, the tradeoff is that the optimized code parses only ISO 8601 dates — 
> this is the informal standard used with JSON, so it’s become really common. 
> It looks like “2013-09-09T17:52:12Z”.

That might actually be a feature.  (Also:  didn’t know ISO did informal 
standards…)

> 
> [1] 
> http://vombat.tumblr.com/post/60530544401/date-parsing-performance-on-ios-nsdateformatter-vs
> [2] 
> https://github.com/couchbase/couchbase-lite-ios/blob/master/Source/CBLParseDate.c

Marcel



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to