years:months:days:hours:minutes:seconds:sinceDate: really slow!
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.