On Wed, July 6, 2005 5:35 pm, Dan Rossi said:
>
> On 07/07/2005, at 10:26 AM, Richard Lynch wrote:
>> "slow" switch
>
> You're a funny man Richard. So how is there overhead using callbacks if
> you dont mind me asking ?

I believe the callbacks imply a function stack, pushing/popping arguments,
and some pointer-chasing arithmetic to figure out where the callback-ed
function *IS* so it can JUMP to it...

Maybe the compiler can pre-compute all that crap, in theory, since all the
opcodes are constants, but I doubt it...

Maybe I'm grossly misleading y'all.

That compiler class I took *was* over a decade ago... :-^

Still got the book on my shelf.  That don't mean I'm gonna read that
sucker.  Though, as I recall, it was the second best textbook I ever read.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to