11-14-2007, 01:39 PM
|
#8 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
I've just done a little test and, well, let the numbers speak for themselves:
Quote:
$aArray[] = 'Test';
This took this many seconds: 1.18
This took this many seconds: 1.20
This took this many seconds: 1.16
array_push($aArray, 'Test');
This took this many seconds: 1.86
This took this many seconds: 1.90
This took this many seconds: 2.01
|
(Each one was looped a million times - had to increase the PHP memory limit, of course :) It wasn't having any of it - trying to squeeze it into an 8MB buffer.)
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|