#36166 [Opn->Bgs]: perfomance loss since php version 5.0.5
| From: | iliaa@php.net | Date: | Tue, 21 Mar 2006 15:14:08 +0000 |
| Subject: | #36166 [Opn->Bgs]: perfomance loss since php version 5.0.5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94716@lists.php.net to get a copy of this message | ||
ID: 36166
Updated by: iliaa@php.net
Reported By: fschaper at intux dot org
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: WindowsXP
PHP Version: 5.1.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
To speed up loading many files use an opcode cache such as APC. PHP 5
supports more language features which lead to the parser being slow,
the way to "fix it" is by caching script opcodes so that the file does
not need to compiled every time it is executed.
Previous Comments:
------------------------------------------------------------------------
[2006-01-28 10:55:42] kristian dot raue at jedox dot com
Here is a short 20 line php script that reproduces the bug.
http://www.jedox.com/impulse/slow_php5_include.zip
There still is the 26000 line of code include file (fx.xcc). But this
is what the bug is all about. The bug has nothing to do with large
arrays, it is about including large include files. This took 0.5 sec in
PHP 4 and PHP 5.05. In PHP 5.1.2 this takes 3 sec. The include file is a
simple dummy file, please look at the code, it is trivial, 26000 line of
repetious code.
------------------------------------------------------------------------
[2006-01-26 16:23:04] fschaper at intux dot org
Original test with php5.05 ~ 0.5sec
php5.1 ~ 4.5sec
------------------------------------------------------------------------
[2006-01-26 16:21:28] fschaper at intux dot org
Description:
------------
Since php version 5.05 we noticed an rather large performance hit in
general while working with rather large array's. We have prepared an
short sample which illustrates the problem. in php5 the script takes
about 0.5 seconds to perform. The latest snapshot release from today
and the current release version of php take about 4.5 seconds for the
same task.
Reproduce code:
---------------
http://www.intux.org/bugs/perf_sample.zip
(About 181KB in size)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36166&edit=1