ID: 41249 Updated by: [EMAIL PROTECTED] 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
