[TYPO3-core] RFC #12128: Performance improvement in t3lib_div::get_dirs()

Martin Kutschker masi-no at spam-typo3.org
Wed Oct 7 14:59:19 CEST 2009


Peter Foerger schrieb:
> Martin Kutschker schrieb:
> 
>> BTW, how often is t3lib_div::get_dirs() called anyway? 
> 
> Docs say 11 times, as of 22/2 2003 !?

Not occurences in the code, but executions! How often is this function called in a typical page hit?

> Hardly, but I consider a cleaner and faster method a boost/improvement
> anyways.

Cleaner is always better. But improvements should only target with bug impact. Optimzing a function
that's called only once if ever in a single web request is a waste of time.

Masi


More information about the TYPO3-team-core mailing list