#41249 [Opn->Bgs]: [raw]urldecode memory consumption
| From: | iliaa@php.net | Date: | Tue, 01 May 2007 17:25:33 +0000 |
| Subject: | #41249 [Opn->Bgs]: [raw]urldecode memory consumption | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112148@lists.php.net to get a copy of this message | ||
ID: 41249
Updated by: iliaa@php.net
Reported By: 3172continuum at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: w2k
PHP Version: 5.2.1
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
Speed vs Memory situation here. Given most uses of urldecode() extra
bit
of speed is more important then a tiny amount of memory.
Previous Comments:
------------------------------------------------------------------------
[2007-05-01 05:57:42] 3172continuum at gmail dot com
Description:
------------
every call of [raw]urldecode consumes (iirc) like 200 extra bytes of my
memory!
if i just delete parts of the array like below, i have a workaround for
the next few weeks... this may though not be useful to other users...
i traced it down to this single line which starts with $IMPORT_filepath
Reproduce code:
---------------
//the next line use several extra bytes on each call, why that?????
#$IMPORT_filepath = rawurldecode($res[$i]->path);
$IMPORT_filepath = urldecode($res[$i]->path);
//with this extra line, memory usage gets lowered:
$res[$i] = '';
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41249&edit=1