Re: Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM
| From: | Andi Gutmans | Date: | Thu, 09 Sep 2004 18:17:18 +0000 |
| Subject: | Re: Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12686@lists.php.net to get a copy of this message | ||
At 02:04 PM 9/9/2004 -0400, John Coggeshall wrote:
Personally I would like to see the hooks for op-codes stay in place, I think they offer a lot of possibilities for extensions. Andi, what do you mean "create the handler execution architecture"? I'm a little confused to what you are referring to.I mean that what we have to day is the function handler dispatch architecture (i.e. what it is in PHP 5.0.x). In PHP 4, we had switch(). Again, I think the opcode hook could be solved for people who want to do so by having such a version floating around in the address space for extensions that want to use it. It's a bit more memory but it's memory that should be shared.
PS -- I hated the switch() method ;)It was definitely uglier and that's why I made the change but in many cases the "goto and/or switch" dispatch methods are faster. Andi