Welcome Guest, Not a member yet? Register   Sign In
Loop not needed in Upload library
#3

[eluser]Derek Jones[/eluser]
I'd have to go look at the source code to check, but I'm pretty sure str_replace() with an array does the same thing internally as that current code is doing in PHP, i.e. looping through an array and calling the actual replacement method over and over again. If memory serves, it even works on a copy of the array just like foreach() does. Not arguing against the code change, I agree it's simpler to just shove the array, but I don't think there's any performance or memory to be gained.


Messages In This Thread
Loop not needed in Upload library - by El Forum - 07-12-2008, 02:41 PM
Loop not needed in Upload library - by El Forum - 07-12-2008, 03:59 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 12:04 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 01:37 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 01:47 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 02:25 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 02:38 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 02:40 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 02:42 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 02:59 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 03:14 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 03:45 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 03:47 PM
Loop not needed in Upload library - by El Forum - 07-13-2008, 04:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB