Re: Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.c
zend_vm.h zend_vm_handlers.h zend_vm_spec.h
| From: | Andi Gutmans | Date: | Thu, 09 Sep 2004 16:04:43 +0000 |
| Subject: | Re: Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.c zend_vm.h zend_vm_handlers.h zend_vm_spec.h |
||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12673@lists.php.net to get a copy of this message | ||
Don't quite understand the question. How is this different from PHP 4? This patch improves performance and is not much different from the switch() we have in PHP 4.
Andi
At 11:26 PM 9/8/2004 -0700, Sterling Hughes wrote:
this is actually a relevant discussion for internals... ---------- Forwarded message ---------- From: Sterling Hughes <sterling.hughes@gmail.com> Date: Wed, 8 Sep 2004 23:26:00 -0700 Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.c zend_vm.h zend_vm_handlers.h zend_vm_spec.h To: Andi Gutmans <andi@php.net> Cc: zend-engine-cvs@lists.php.net Added files:/ZendEngine2 zend_vm.h zend_vm_handlers.h zend_vm_spec.hModified files:/ZendEngine2 zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.cLog: - Some architectural changes: a) We specialize opcodes according to op_type fields. Each opcode has tobe marked with which op_type's it uses.b) We support different execution methods. Function handlers, switch()and goto dispatching. goto seems to be the fastest but it really depends on the compiler and how well it optimizes. I suggest playing around with optimization flags.- Warning: Things might break so keep us posted on how things are going.(Dmitry, Andi)How could someone like the APC optimizer now hook into this system and add a new instruction without modifying the executor? -Sterling -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php