Re: Lots of NSTimers?
Re: Lots of NSTimers?
- Subject: Re: Lots of NSTimers?
- From: Nathan Day <email@hidden>
- Date: Sat, 21 May 2005 19:20:21 +1000
Trying implement your own time-sorted queue would be simple
duplicating Apples own NSTimer mechanism, do you think you can do a
better job of it.
On 21/05/2005, at 8:51 AM, Karl Goiser wrote:
G'Day,
I have a requirement which involves (potentially) hundreds of
independent NSTimer-style one-shot events.
Could anybody advise as to whether it would be better to use
(hundreds of) NSTimers, or build a lightweight version with a time-
sorted queue and one NSTimer for the next event?
(I guess this has to do with the internal implementation of NSTimer
- are they all checked every time through the event loop, or is a
callout queue used?)
Thanks in advance!!
Karl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden