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

Commit 19986198 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[res] Optimize TypedValue filling from JNI

Use a single Java method that populates all fields at once
instead of a chain of separate JNI "SetXXXField" calls that
turned out to be significantly more expensive.

This speeds up most of the benchmarks in ResourcesPerfTest
by 10-15%

Test: atest ResourcesManagerTests ResourcesPerfTest
Flag: EXEMPT minor optimization
Bug: 396884481
Change-Id: I58d493fa1c0f1809a547922fa96ecaad844f5984
parent 4a70f905
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment