3 ms·
Another way to cut down on overhead is in the php for loops. If the page has many images to load, the size of the array will be large and sizeof() will be calle
by t0f3rchr15 14y ago
Another way to cut down on overhead is in the php for loops. If the page has many images to load, the size of the array will be large and sizeof() will be called every iteration of the loop. Instead, use for($m = 0, $mm = sizeof(array); $m < $mm; $m++), or set a variable to the size of the array before the loop. This way, the sizeof() method is only called once. http://php.net/manual/en/function.sizeof.php http://php.net/manual/en/function.sizeof.php