Bug #22194
closed
Performance optimization: change while(list() to foreach()
Added by Georg Ringer about 14 years ago.
Updated almost 14 years ago.
Description
foreach($arr as $key=>$value) is faster than while (list($key, $value)=each($arr)) so it should be changed
(issue imported from #M13670)
Files
Georg, great patch. Could you please update it so it works with the current trunk again?
Thanks.
Updated patch attached and in core list
Commited the latest (13670_v5-general.diff ) split up to trunk:
rev. 7592 = t3lib/
rev. 7593 = typo3/
rev. 7594 = typo3/mod/tools/em/
rev. 7595 = typo3/sysext/tstemplate_objbrowser/
rev. 7596 = typo3/sysext/belog/
rev. 7597 = typo3/sysext/lowlevel/
rev. 7598 = typo3/sysext/wizard_crpages/
rev. 7599 = typo3/sysext/statictemplates/
rev. 7600 = typo3/sysext/lang/
rev. 7601 = typo3/sysext/cms/
rev. 7602 = typo3/sysext/version/
rev. 7603 = typo3/sysext/wizard_sortpages/
rev. 7604 = typo3/sysext/impexp/
rev. 7605 = typo3/sysext/indexed_search/
rev. 7606 = typo3/sysext/rtehtmlarea/
rev. 7607 = typo3/sysext/extra_page_cm_options/
rev. 7608 = typo3/sysext/sys_action/
Also available in: Atom
PDF