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

HB.instance with a better complexity #340

Open
gares opened this issue Feb 14, 2023 · 0 comments
Open

HB.instance with a better complexity #340

gares opened this issue Feb 14, 2023 · 0 comments
Assignees

Comments

@gares
Copy link
Member

gares commented Feb 14, 2023

EDIT by @CohenCyril :
Right now instance declaration iterates over all classes, tries to find an instance, and instantiates the class / structure or aborts silently if it fails. This would be better achieved using the following algorithm instead:

1. compute the set T of classes that are potential targets to instanciate
2. compute the set E of already existing instances
3. compute the set difference T \ E, topological sort it and iterate on that set instead.

CC @gares @ThomasPortet

@CohenCyril CohenCyril removed their assignment Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants