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

Used lazy injection to reduce initial memory overhead #164

Closed
wants to merge 1 commit into from

Conversation

OxSourabh
Copy link

This pull request implements lazy initialization for dependency injection in the MainActivity, addressing performance bottlenecks during application startup.

Key Improvements

  • Reduces initial memory allocation by deferring object creation
  • Minimizes computational overhead during activity initialization
  • Optimizes resource utilization through on-demand dependency resolution

@abdallahmehiz
Copy link
Owner

abdallahmehiz commented Nov 29, 2024

isn't by inject already lazy?
https://insert-koin.io/docs/reference/koin-android/get-instances/#ready-for-android-classes
also, if this actually improves performance, can you measure it?

@OxSourabh
Copy link
Author

My bad thanks for pointing out ! for performance metrics I can give it a try

@OxSourabh OxSourabh closed this Nov 29, 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

Successfully merging this pull request may close these issues.

2 participants