Hello Marcus,

Monday, June 30, 2003, 2:28:35 AM, you wrote:


MB> - Include SPL (forach/array hooking).

I tested the current patch:
http://marcus-boerger.de/php/ext/ze2/ze2-spl-20030701.diff.tgz
and profiled it again. What i did (in case someone doesn't know yet) was to
read 10 rows of three columns from a sqlite database 10 times. Further more
profiled a 'php -h' call and substracted that timing. So i only have the
looping and some very little overhead.

Using a normal for loop (minus php -h) is used for 100%.
Then i did the same with sqlite_array_query() and got 87%.
Then i did it with spl-forach hooking and got 57%.

Wow that's nearly 2 times faster...



-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to