[TYPO3-core] RFC: #13670: Performance optimization: change while(list() to foreach()

Benjamin Mack benni at typo3.org
Wed May 19 23:00:20 CEST 2010


Hey Susanne,

foreach is slow when modifying the array, check for "Read Loop:" in the 
phpbench.com section.

all the best,
Benni.

On 19.05.10 20:45, Susanne Moog wrote:
> I know I'm a bit late, but I wanted to ask if there's any proof /
> statistics that this really tunes performance as I just happened to look
> at http://www.phpbench.com/ which seems to suggest otherwise if I read
> it correctly (see section: foreach() vs. for vs. while(list() = each())).
>
> Sorry for asking this ;)
>
> Susanne



More information about the TYPO3-team-core mailing list