hello,
in my script, I have to include many files, and it will often happen that a needed file was already included
My doubt is: is it more efficient to use an array of already included filenames and call include only if the name is not in_array(), or I should just use include_once every time? This is executed lots of times, so even a slight performance difference matters a lot.
I couldn't find info about include_once functioning, and I wonder if it maintains an internal array of included files (and if it does, what's the complexity of the structure of such array) or accesses the file system every time. In that last case, maintaining an array myself would be much faster.
What do you think?
Thanks!