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

Rupert Germann rupi at gmx.li
Tue Oct 6 12:05:41 CEST 2009


Ernesto Baschny [cron IT] schrieb:
> Sounds nice. But scandir() does more than just return the files. It also
> sorts them alphabetically. Still a change of functionality.

well, I'd see this as a wanted change and an improvement.

> Maybe you could try readdir()? That should be even faster than scandir()
> as it doesn't sort anything.

ernesto, I am shure that the ancient readdir() function which is called 
in a while loop and additionally needs opendir() and closedir() will 
never be faster than the newly introduced function scandir().

greets
rupert



More information about the TYPO3-team-core mailing list