[TYPO3-core] RFC: #13670: Performance optimization: change while(list() to foreach()
Susanne Moog
info at susannemoog.de
Wed May 19 20:45:36 CEST 2010
On 26.02.2010 00:41, Georg Ringer wrote:
> Hi,
>
> This is an SVN patch request.
>
> Type: Bugfix, Performance tuning
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13670
>
> Branches: trunk, 4.3
>
> Problem:
> foreach($arr as $key=>$value) is faster than while (list($key,
> $value)=each($arr)) so it should be changed
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