-
-
Notifications
You must be signed in to change notification settings - Fork 153
Question about garbage collector #56
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
Comments
GetIt doeesn't keep any referenes to Objects created by Factories. It has to keep references to Singletons to be able to access them though. Howver you can dispose them manually. By calling |
@escamoteur The |
yep, reset also frees the existing instance |
Ok, so in the question of performance, I can use |
with LazySingletons you can always just use reset unless you want to remove the registrataion which would lead to an exception on the next access if you don't reregister it. Performance difference is not the point. |
Are instances returned by a factory eligible for garbage collection? And how about singleton?
The text was updated successfully, but these errors were encountered: