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

Replace HashSet with ArraySet #401

Open
emanuele-f opened this issue Feb 1, 2024 · 0 comments
Open

Replace HashSet with ArraySet #401

emanuele-f opened this issue Feb 1, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@emanuele-f
Copy link
Owner

Using HashSet is not appropriate for small sets like the one used in VpnExemptionsActivity, AppsTogglesAdapter, etc, as it wastes ram. An ArraySet or similar should be used instead.

Note: ArraySet is not available in API 21, so a wrapper class should probably be created

@emanuele-f emanuele-f added the enhancement New feature or request label Feb 1, 2024
@emanuele-f emanuele-f added this to the 1.8.0 milestone Feb 1, 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