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

Improve energy efficiency by applying Cache Energy Pattern #111

Merged
merged 1 commit into from
Jul 25, 2020

Conversation

anasofiagribeiro
Copy link
Contributor

This improves the energy efficiency of Twire by applying the Cache Energy Pattern for mobile applications.

The energy pattern was applied in Service.java and TLSSocketFactoryCompat.java . The general idea is to avoid performing unnecessary operations by increasing the size of the cache used. In particular, when a SSLContext is created, if the size of the cache has a limit, it's set to have no limit.

@samfundev
Copy link
Collaborator

I'm pretty new to Android so thanks for the optimization.

@samfundev samfundev merged commit c9f7e0a into twireapp:master Jul 25, 2020
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