ID:               28918
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mail at spybreak dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Performance problem
 Operating System: Windows 2000
 PHP Version:      4.3.6
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2004-06-25 13:20:00] mail at spybreak dot de

Description:
------------
I noticed when timing my scripts that include_once is pretty slow when
one looks at how simple of a job this function has.

I timed an example further down.

Please don't disregard this request just because it might not seem very
important. If it can't be improved though, C is not my domain, nevermind
and thanks for reading :)

Reproduce code:
---------------
include_once(components_dir.'style.php');
/* 0.0026910305023193 seconds */


include_once(components_dir.'style.php'); 
/* 0.00091314315795898 seconds
   only three times as fast as the first include_once call! whereas the
next example…*/


$array =
array('somefile.php','somefile.php','somefile.php','somefile.php','somefile.php',
              
'somefile.php','somefile.php','somefile.php','somefile.php','somefile.php');
in_array('someotherfile.php',$array);
/* only takes 0.000065088272094727 seconds and hence is 40x as fast (if
my calculations are correct) */



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28918&edit=1

Reply via email to