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

Skip to content
Commit 7682212a authored by Mark Fasheh's avatar Mark Fasheh
Browse files

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
parent 86fc73ae
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