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

Micro-optimization: Use memory friendly data structures. #50

Open
kevingamez opened this issue Nov 26, 2023 · 0 comments
Open

Micro-optimization: Use memory friendly data structures. #50

kevingamez opened this issue Nov 26, 2023 · 0 comments

Comments

@kevingamez
Copy link

There are more than 30 files where Dart Maps are used. The recommendation to transition from LinkedHashMap to HashMap in the Kalium codebase is regarded as a micro-optimization due to its narrow focus on a specific implementation detail. In this case, the proposed change concentrates solely on the memory footprint of the Map data structure. While memory efficiency is undoubtedly a crucial consideration, especially in mobile development where resources are constrained, the impact of this modification might be limited. Moreover, the overall impact on the application's performance should be assessed through profiling and benchmarking, as optimizing a specific code snippet in isolation may not necessarily translate into significant improvements at the application level.

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

No branches or pull requests

1 participant