Moving SPL into the engine ?
| From: | (Marcus B�rger) | Date: | Tue, 01 Jul 2003 00:06:25 +0000 |
| Subject: | Moving SPL into the engine ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3067@lists.php.net to get a copy of this message | ||
Hello Andi,
you asked for a spl patch against ZE2. Ok, i spent some hours to move
spl-foreach hooking into the engine.
Here is the diff:
http://marcus-boerger.de/php/ext/ze2/ze2-spl-20030630.diff.tgz
Here are modified tests:
http://marcus-boerger.de/php/ext/ze2/ze2-spl-tests-20030630.tgz
Here is the diff needed for sqlite:
http://marcus-boerger.de/php/ext/ze2/ze2-spl-sqlite-20030630.tgz
As soon as i find some more time i'll give the array stuff a go. Anyway it
would be good to receive some feedback before doing it.
As you can see easily, the impact on the foreah opcode handlers is even less
than i thought. So i guess it is more than acceptable when compared to what we
gain.
Happy experimenting
Best regards,
Marcus mailto:helly@php.net