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
The init method directly instantiates all other objects.
Ideally we should just add a hook and load each object only when needed.
Not a big issue because each object then adds the hooks it needs internally, so the only real overhead added, is the files getting loaded when not absolutely necessary.
We should refactor that method, looking at what hooks each sub-class calls, and loading the classes only when needed (probably on init)
An optimization worth doing 👍
The text was updated successfully, but these errors were encountered:
The
init
method directly instantiates all other objects.Ideally we should just add a hook and load each object only when needed.
Not a big issue because each object then adds the hooks it needs internally, so the only real overhead added, is the files getting loaded when not absolutely necessary.
We should refactor that method, looking at what hooks each sub-class calls, and loading the classes only when needed (probably on
init
)An optimization worth doing 👍
The text was updated successfully, but these errors were encountered: