Re: IOS floating point performance
Re: IOS floating point performance
- Subject: Re: IOS floating point performance
- From: Uli Kusterer <email@hidden>
- Date: Sun, 11 Aug 2013 14:49:51 +0200
On Aug 8, 2013, at 15:29, Trygve Inda <email@hidden> wrote:
> [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]
>
> This is called from C (not Cocoa) so I am looking at the best way to do this
> once and pass the NSCalendar object to where it is needed.
A common thing for NSCalendar and NSDateFormatter objects is to keep them in static variables. That way you pay the overhead once, per function/module and then it gets re-used.
Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://stacksmith.org
_______________________________________________
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