• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOS floating point performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: IOS floating point performance (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: reverse scanner
  • Next by Date: LaunchAgent suddenly appears in Dock bouncing when CGImageSourceCopyPropertiesAtIndex is called
  • Previous by thread: Re: IOS floating point performance
  • Next by thread: Re: IOS floating point performance
  • Index(es):
    • Date
    • Thread