How much does getting a list of directories affect php's performance -
very simple question time, have group of folders , of them contain files autoload whenever run sites script. not want have specify files autoload because want process dynamic , want able create , delete different files on fly. of course easiest solution list of folders in directories , build paths auto load files, if files exist script includes them. but, question how affect performance of script? framework want release later on performance quite issue. ideas?
you should consider letting php autoload classes.
if won't work, you're pretty left directory-scanning solution, , shouldn't care performance penalties. if want functionality, you'll put costs.
generally shouldn't stress overmuch performance in php anyways. if becomes issue when framework complete, revisit it. chances you'll find whatever performance gains/losses incur rendered moot implementing caching system in framework.
Comments
Post a Comment