• 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
years:months:days:hours:minutes:seconds:sinceDate: really slow!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

years:months:days:hours:minutes:seconds:sinceDate: really slow!


  • Subject: years:months:days:hours:minutes:seconds:sinceDate: really slow!
  • From: David Sinclair <email@hidden>
  • Date: Sat, 17 Aug 2002 16:50:02 -0700

Has anyone else noticed that NSCalendarDate's years:months:days:hours:minutes:seconds:sinceDate: is very slow?

I tried using it to calculate a relative date and/or time, for display in a table view (e.g. "3 hours 7 minutes 12 seconds", updating every second). But it caused the app response time to fall unacceptably, which was traced to that method. It took an average of almost a second each time on an 800MHz G4 iMac... which is unacceptable when it is being called once per second.

Is this a known issue, and would it be considered a bug, or just an unavoidable problem? Any chance it's improved in Jaguar?

And any suggestions for ways I can achieve the same thing without the performance hit?

--

David Sinclair - email@hidden
http://www.dejal.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: years:months:days:hours:minutes:seconds:sinceDate: really slow!
      • From: Itrat Khan <email@hidden>
  • Prev by Date: Re: cocoa-dev digest, Vol 2 #1121 - 20 msgs
  • Next by Date: Re: Looking for ideas about displaying unkown-type data
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1121 - 20 msgs
  • Next by thread: Re: years:months:days:hours:minutes:seconds:sinceDate: really slow!
  • Index(es):
    • Date
    • Thread