PHP 4.0 Bug #7848 Updated: IMAP is very slow in CGI version
| From: | dbeu@php.net | Date: | Sat, 18 Nov 2000 14:47:30 +0000 |
| Subject: | PHP 4.0 Bug #7848 Updated: IMAP is very slow in CGI version | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38465@lists.php.net to get a copy of this message | ||
ID: 7848
Updated by: dbeu
Reported By: cahagn_o@epita.fr
Status: Feedback
Bug Type: Performance problem
Assigned To:
Comments:
can you trace it back to a specific funtion?
Previous Comments:
---------------------------------------------------------------------------
[2000-11-16 12:45:59] cahagn_o@epita.fr
I (with a friend) coded a webmail client in PHP (re-written
from Perl), available at:
http://nocc.sourceforge.net/
It's very fast when PHP is loaded as a module with Apache (3
seconds to display a mailbox list from POP3 or IMAP server)
but the CGI version takes around 2 or 3 minutes to display
anything.
Even when disabling the default mailbox sorting feature, it
takes very long, but at least it won't fail with Windows
2k+Apache+PHP cgi with the 30 seconds max. exceeded.
I know this is a light bug report but I really wonder why
it's so slow, every other cgi with the same php binary is
very fast and the same webmail client coded with Perl is
much faster than the PHP equivalent whereas, generally
speaking, for my experience, my PHP scripts are faster than
my other scripts written in Perl, sh, etc. (except C :).
The accessed mail servers are local and I tried NetBSD,
Linux, Windows 2000.
I use the latest PHP from snaps.php.net or php4win.de
See http://www.epita.fr:8000/~cahagn_o/php/info.php
I've been using PHP for years now, debugging it a bit (the
binary is 2MB large on the NetBSD box) but this performance
problem is weird.
Thanks for any enlightenment. I hope you won't close this
bug report for bad php coding reason, I really think there's
a specific performance problem with CGI and IMAP, perhaps
the IMAP library that keeps on being reloaded ?
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7848