#19864 [Bgs->Opn]: getimagesize slow on large file
| From: | Xuefer at 21cn dot com | Date: | Fri, 11 Oct 2002 15:18:14 +0000 |
| Subject: | #19864 [Bgs->Opn]: getimagesize slow on large file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22164@lists.php.net to get a copy of this message | ||
ID: 19864
User updated by: Xuefer@21cn.com
Reported By: Xuefer@21cn.com
-Status: Bogus
+Status: Open
Bug Type: GetImageSize related
-Operating System:
+Operating System: linux
PHP Version: 4.2.3
New Comment:
system: redhat7.2
what i did:
sanning directories, get all image size to store into database
what i wanted to happend:
scan so many files in 10 seconds
what actually happened:
some of the files take about 11 seconds for each.
url of 2 sample files
http://ul.oursky.net/117549/qiumi1.jpg
http://ul.oursky.net/117549/2002100718.jpg
download to local drive before testing
almost every file take about 11 seconds
Previous Comments:
------------------------------------------------------------------------
[2002-10-11 08:59:56] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-10-11 08:34:25] Xuefer@21cn.com
getimagesize very slow on large _local_ file
for 4mb file, it take 1sec or more time!
i wonder why it's such slow to just read file head info
is it trying to buffer the whole file?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19864&edit=1