-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Castley wrote:
| I have found out today that by using ini_set in your bootstrap is slower
| than using set_include_path
|
| Using HTTP Analyzer I achieve the following results:
|
| Apache 2.2.8
| PHP 5.2.5
| Windows XP
| FF 2
|
| ini_set average request time 0.345s
|
|
| set_include_path average request time 0.160s
|
|
| On average about 50% saving.
|
| - Robert
I think your test was flawed; at least on my Linux box which is
otherwise the same as your setup (ish), I can do 10000
ini_set('include_path', 'xxx') and 10000 set_include_path()'s in almost
exactly the same time.
Your time discrepancy is probably therefore due to random freaks of
network traffic...
Interestingly, calling ini_set('include_path', '') doesn't work, and it
(the include_path) remains unchanged.
Code @ http://pastebin.akrabat.com/117
thanks
David.
- --
~ David Goodwin Pale Purple Limited
~ Office: 0845 0046746 Mobile: 07792380669
~ http://www.palepurple.co.uk Company No: 5580814
~ 'Business Web Application Development and Training in PHP'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH/i8U/ISo3RF5V6YRAtz8AJ4jvvx+oE27EaB3ts+Zyf8cKcHT2QCfaZVv
zVklIizmPAq2q+veyExtJz0=
=JoiD
-----END PGP SIGNATURE-----