I know. I was saying that include_once is likely implemented as a hash table, whereas the proposals here involve looping through loaded files to check. O(1) vs O(n).
Printable View
I wasn't disagreeing, only confirming.
I should also mention that if the OP checks every include against the list of successfully loaded includes, they're looking at O(n^2) performance, not to mention the performance cost of doing so recursively. O(n) isn't the least of the OP's worries.
core coders :D
Such a simple snippet, cheers Jonty!