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

Skip to content
Commit 0283bdb0 authored by Eric Lin's avatar Eric Lin
Browse files

Disable ObjectPool in WM server transaction w/ flag.

ObjectPool is bypassed if the flag is enabled, letting the GC handle
lifecycle items. This addresses unnecessary overhead from synchronized
map operations and allows using the 'final' keyword on pool items for
further cleanup.

Benchmarking each test case (50,000 iterations) shows
~25% (193.77 ms) speedup with ~15% GC time (9.49 ms) tradeoff:
http://gpaste/5510735790866432

Bug: 311089192
Test: atest FrameworksCoreTests:ObjectPoolTests
Flag: com.android.window.flags.disable_object_pool
Change-Id: I1eb5de46e7b58ab5356bcdd4d9bb0c2fcf99efeb
parent 26b25da3
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