Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
is that with the sources i just send?
Am 24.04.2007, 12:10 Uhr, schrieb Antony Dovgal <[EMAIL PROTECTED]>:
On 04/24/2007 01:07 PM, [EMAIL PROTECTED] wrote:
Hello everyone,
when testing speed of includes and requires i found that
"require_once" seems to be very slow in comparison to "require". Even
worse "require_once" seems to be slower than a php function
"myrequire_once". This is true not only for cli but also when using
apc or eAccelerator. Does anyone has an explanation for this?
require_once() - 0.1315 sec
myrequire_once() - 0.7054 sec
I.e. your function is ~5 times slower.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php