[TYPO3-core] RFC #12128: Performance improvement in t3lib_div::get_dirs()
Ernesto Baschny [cron IT]
ernst at cron-it.de
Tue Oct 6 11:11:18 CEST 2009
Rupert Germann schrieb:
> how about scandir()?
> have a look at the attached patch. I measured 7-18% performance gain,
> compared to the old function. The bigger the directory is, the more
> improvement we have.
Sounds nice. But scandir() does more than just return the files. It also
sorts them alphabetically. Still a change of functionality.
Maybe you could try readdir()? That should be even faster than scandir()
as it doesn't sort anything.
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list