Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the Base::init() method #41

Open
aristath opened this issue Jun 18, 2024 · 0 comments
Open

Refactor the Base::init() method #41

aristath opened this issue Jun 18, 2024 · 0 comments
Assignees

Comments

@aristath
Copy link
Member

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 👍

@aristath aristath self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant