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

Class cache #16

Open
diamondburned opened this issue Jul 7, 2021 · 1 comment
Open

Class cache #16

diamondburned opened this issue Jul 7, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@diamondburned
Copy link
Owner

In order to implement a collision-free method inheritance system in gotk4, a class/interface cache is required, because resolving a tree repeatedly and recursively for every single method is simply not feasible and will blow up generation time to minutes.

The cache would likely have to:

  • work at the generation level inside iface.Generator
  • be integrated with the Generator interface to make it not leaky

All code using methods should also rely on the iface.Generator, especially when caching it makes it very cheap to do so.

@diamondburned
Copy link
Owner Author

For now, methods will simply not be carried over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant