You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize: use O(1) item lookup instead of O(M) in a loop.
When checking $includedFiles for an included file,
the previous `in_array()` approach, executed in a loop,
is very expensive. Basically, it results in performance
of O(N * M), where N - number of declared classes,
M - number of included classes. The current approach
is O(N), since `isset()` check has constant `O(1)` time.
0 commit comments