develooper Front page | perl.perl5.porters | Postings from August 2001

RE: Adding callbacks to the core

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
August 20, 2001 13:51
Subject:
RE: Adding callbacks to the core
Message ID:
5.1.0.14.0.20010820165006.01ee1b60@tuatha.sidhe.org
At 03:36 PM 8/20/2001 -0500, David M. Lloyd wrote:
>On Mon, 20 Aug 2001, Arthur Bergman wrote:
>
> > Isn't callback check the same as async check?
>
>Similar but not the same.  Async check scans an array looking to see which
>signal was triggered; Callback check doesn't need to scan.  Also, with
>callback check, you can add and remove callbacks at runtime.

Why not piggyback the callback stuff onto the event stuff? The check can 
still be cheap--while the ultimate figuring out and dispatch to the 
appropriate routine might be more expensive, the user only pays that when 
something happens rather than all the time.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About