Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f52551d9 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Intern package names in AppOps historical data.

AppOps historical data contains many repeated packages names stored in
attribute values, increasing disk space and reading/writing time.

This change makes a trivial adjustment to write these package names
as "interned" values gives the serializer the option of writing the
package name once and then using a lightweight backreference for all
future instances.  Existing benchmarks show substantial CPU and disk
improvements when interning is enabled.

Bug: 171832118
Test: atest FrameworksServicesTests
Change-Id: I6d4a01e13caaf294aa6e015c528b909163dcae10
parent 9e87dd24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment