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

recreation of libraries instance when not necessary #56

Open
mkarten opened this issue Jul 2, 2024 · 0 comments
Open

recreation of libraries instance when not necessary #56

mkarten opened this issue Jul 2, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mkarten
Copy link
Member

mkarten commented Jul 2, 2024

in controllerLib.go when we init the package we create a map of functions that creates new instances of the designated Lib struct.
Not only does it waste memory but also prevent state conservation if a library needs to store a modified instance of one of it's internal variables

@mkarten mkarten added the enhancement New feature or request label Jul 2, 2024
@mkarten mkarten self-assigned this Jul 2, 2024
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