3 ms·
Well, it takes a trivial amount of time to loop through an array with a million results. So can you please clarify the benefit of the class as-is, besides its p
by zackattack 17y ago
Well, it takes a trivial amount of time to loop through an array with a million results. So can you please clarify the benefit of the class as-is, besides its purported future extensiblity? I don't get the time to unset() the array before I return it, but you do?
BTW I did a test, and it seems that $array[] is a faster way to append.
- jrockway 17y agoBTW I did a test, and it seems that $array[] is a faster way to append. Classic PHP-style micro-optimization. If you can't use the right algorithm, you can at least make the wrong one run 0.34% faster.