Skip to content

Improve energy efficiency by applying Cache Energy Pattern#111

Merged
samfundev merged 1 commit into
twireapp:masterfrom
Refactor4Green:Refactor4Green
Jul 25, 2020
Merged

Improve energy efficiency by applying Cache Energy Pattern#111
samfundev merged 1 commit into
twireapp:masterfrom
Refactor4Green:Refactor4Green

Conversation

@anasofiagribeiro

Copy link
Copy Markdown
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
Copy Markdown
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