Re: PHP 5.1 vm
| From: | Richard Lynch | Date: | Thu, 07 Jul 2005 01:17:03 +0000 |
| Subject: | Re: PHP 5.1 vm | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218273@lists.php.net to get a copy of this message | ||
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