ID:               41249
 User updated by:  3172continuum at gmail dot com
 Reported By:      3172continuum at gmail dot com
 Status:           Bogus
 Bug Type:         Performance problem
 Operating System: w2k
 PHP Version:      5.2.1
 New Comment:

well, its a converter and a sourcefile of more than 800k lines
that would be 160M used in the script just for calling this function
800k times
and its not even recursive or anything like this...
just by calling a function, afterwards more memory is used!??!!

furthermore i dont understand why this isnt a bug :-\


Previous Comments:
------------------------------------------------------------------------

[2007-05-01 17:25:33] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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

Reply via email to