diff options
| author | 2023-12-19 22:22:56 +0000 | |
|---|---|---|
| committer | 2024-01-10 03:50:10 +0000 | |
| commit | 7682212ac3632ff1b5c096e2a813ec5b25229548 (patch) | |
| tree | af7244b262c69aecde56c3f2d5ae58675c3974d8 /libs/androidfw/StringPool.cpp | |
| parent | 86fc73ae281f2bc031fbf8c2ce4fc1c63ac8f8d3 (diff) | |
MessageQueue: track tail of queue
Give us a chance at avoiding O(N) behavior when inserting an item at the
tail of the queue. This patch showed a significant (~35.7%) decrease in
system_server contention during post boot period.
This code is guarded by Flags.messagequeueTailTracking().
Bug: 305311707
Test: atest MessageQueueTest
Test: boot system and use it
Change-Id: I6e84736a2f2e9951b407caa726144e875d6fd6ea
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions