#27215 [Fbk->NoF]: include in php5 is very slow
ID: 27215 Updated by: [EMAIL PROTECTED] Reported By: waboring at 3gstech dot com -Status: Feedback +Status: No Feedback Bug Type: Performance problem Operating System: Redhat 9 PHP Version: 5CVS-2004-02-10 (dev) New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: [2004-05-28 00:15:26] [EMAIL PROTECTED] i think we're not quite done with that issue yet. the fix makes php5 perform much better, but not quite there yet. i'll keep working on this next week, using the phphtmllib as a case study. will keep you posted ... [2004-05-27 16:22:55] mikedransfield1 at hotmail dot com I have also seen this error with a different application (sorry cant post examples) On a page with heavy object use and multiple include_once statements, pages that took aroung 0.15 sec with php4 (with mmcache) were taking upto 2 seconds with php5-RC2 (with mmcache). I have just checked out the latest cvs and there are indeed some speed improvements, now the page takes around 0.25 seconds in php5, this is without mmcache. [2004-05-27 11:26:11] [EMAIL PROTECTED] derick: i'm referring the commits by andi: zend_alloc.h 1.50,1.51 zend_alloc.c 1.132 regarding memory leaks in mem cache. i've tested phphtmllib myself (as described in the bug report), and on my system php5 did much worse than php4 (gentoo, apache 1.3.x). this commit makes it better though ;-) [2004-05-26 10:16:35] [EMAIL PROTECTED] No need to fiddle with compiling yourself, just grab a binary snapshot from http://snaps.php.net . Also, i've no clue to what Shie is referring as there were no changes regarding to this, nor did I notice any preformance problems at all with PHP 5. [2004-05-26 09:53:36] alexis dot butplease at nospam dot net Thanks a lot Shie for this fix, Unfortunatly, i can't test it on my regular PC since it's a XP without Visual Studio (and no cant dual boot here, it's not really my PC see). There's this old broken dinosaur in my basement at home. I'll try to repair it and install Linux to try your fix out. I'll post here my comments if i can make my old crap run again :) Thanks again The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27215 -- Edit this bug report at http://bugs.php.net/?id=27215&edit=1
#27215 [Fbk->NoF]: include in php5 is very slow
ID: 27215 Updated by: [EMAIL PROTECTED] Reported By: waboring at 3gstech dot com -Status: Feedback +Status: No Feedback Bug Type: Performance problem Operating System: Redhat 9 PHP Version: 5CVS-2004-02-10 (dev) Previous Comments: [2004-03-13 05:01:13] [EMAIL PROTECTED] Can't you test this with some other code which doesn't require bug #27227 to be fixed..? [2004-03-03 14:28:25] [EMAIL PROTECTED] Then we leave the status at "Feedback" until you can test again. Derick [2004-03-03 14:23:22] waboring at 3gstech dot com I can't really test this right now because I am waiting on another php5 bug to get fixed. The other bug is http://bugs.php.net/bug.php?id=27227 related to a bug in mixed case in constructor names not being called correctly. [2004-02-25 13:17:02] duncan at emarketeers dot com I have the same problem. Scripts which execute in ~100ms under php4 take ~2secs under php5. This is php5-beta4 on Mandrake 9.0 and Mandrake 9.1 Linux gemini.emarketeers.priv 2.4.18-6mdksmp #1 SMP Fri Mar 15 01:24:36 CET 2002 i686 PHP configured with: ./configure --with-mysql --disable-libxml --with-apxs apache is 1.3.27 No other php extensions loaded. I can provide more details by email if required. PLEASE LOOK AT THIS! [2004-02-11 15:05:48] [EMAIL PROTECTED] I have not noticed any performance problem with PHP 5, quite the opposite actually. Please provide information how you have configured PHP (what web server is used, are you running PHP5 as CGI or as a module, what configure line was used when compiling PHP, what possible extensions you load in php.ini if any, etc.) (isn't all this mentioned in the instructions about HOW to report???) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27215 -- Edit this bug report at http://bugs.php.net/?id=27215&edit=1
#27215 [Fbk->NoF]: include in php5 is very slow
ID: 27215 Updated by: [EMAIL PROTECTED] Reported By: waboring at 3gstech dot com -Status: Feedback +Status: No Feedback Bug Type: Performance problem Operating System: Redhat 9 PHP Version: 5CVS-2004-02-10 (dev) New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: [2004-02-11 15:05:48] [EMAIL PROTECTED] I have not noticed any performance problem with PHP 5, quite the opposite actually. Please provide information how you have configured PHP (what web server is used, are you running PHP5 as CGI or as a module, what configure line was used when compiling PHP, what possible extensions you load in php.ini if any, etc.) (isn't all this mentioned in the instructions about HOW to report???) [2004-02-11 14:00:22] waboring at 3gstech dot com I'm not sure what else you want me to provide. The bug is very clear. There is a big performance issue with php5 just including a file with a class in it. php4 does not show this problem. I have created a directory on my web server that shows the test code. http://phphtmllib.newsblob.com/bug/index.php This is running in an php4 environment and it takes 0.005s to execute the index.php code. I don't have php5 running on this machine, as it is a production box. You can look at the source code of the scripts by pointing to the following files. http://phphtmllib.newsblob.com/bug/index.phps http://phphtmllib.newsblob.com/bug/includes.phps http://phphtmllib.newsblob.com/bug/ContainerClass.phps http://phphtmllib.newsblob.com/bug/XMLTagClass.phps http://phphtmllib.newsblob.com/bug/HTMLTagClass.phps When I run this on my machine (Pentium 4 1.8Ghz 512M ram) php4: 0.005s php5: 0.100s [2004-02-10 20:19:37] waboring at 3gstech dot com Description: I am the maintainer of phphtmllib. I just got the latest php5 from cvs built and working, but have noticed a serious performance issue with just doing includes. reproduce: download phphtmllib from http://phphtmllib.newsblob.com/downloads/download.php?version=2.4.0 tar -zxvf phptmllib-2.4.0.tgz into your favorite location create a simple script that does nothing but include the library include file. "phphtmllib-2.4.0/include.inc" The execution of which takes over 1 second to complete. This script takes 0.075 to complete in php 4.3.2 Reproduce code: --- Expected result: expected the simple include script to return in under .1 ms Actual result: -- The script took over 1 second to execute. -- Edit this bug report at http://bugs.php.net/?id=27215&edit=1