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

Peter Foerger pfoerger at gmail.com
Tue Oct 6 14:35:54 CEST 2009


Hi,

Ernesto Baschny [cron IT] schrieb:
> 
> Maybe you could try readdir()? That should be even faster than scandir()
> 

as this RFC is about performance I have tested the both of them.
scandir() seems to be a bit faster ~2% than readdir(), in the scope of
t3lib_div::getDirs($path) that is. Both approaches are ~10% faster than
what we have by now.

+1 by reading and testing v3

~Peter

Addendum: attached a patch for t3lib_div_testcase to reflect getDirs()
as well


More information about the TYPO3-team-core mailing list