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

Skip to content
Commit f34b745c authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

Reapply "[res] Optimize idmap data initialization in OMS"

The commit got reverted because of a performance regression.
This change is trying to pinpoint it with the steps:

1. Split out the smaller optimizations that are either safe,
   or at least can be easily reverted separately

2. Put the risky optimization that changes the overlayable-
   related JNI calls in the last CL (here)

Original commit message:
    [res] Optimize idmap data initialization in OMS

    - Only load overlayable definitions for the needed apks
      intead of parsing their all resource tables
    # ^^ this is the current CL

    - Don't load any overlayable definitions for checking
      actor policies if no actor policies are defined for the
      device. Almost no one defines any
    # ^^ this part is separated

    - Reduce the number of allocations for the most common
      operations in overlay settings
    # ^^ this part is separated

Bug: 282215580
Test: system boot + perf trace

This reverts commit b63b69c5.

Change-Id: I20c89d78b8f88e60bb4050a936e0b930f6386ad8
parent c468c0ed
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