Skip to content

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