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

Skip to content
Commit 806f7768 authored by Shai Barack's avatar Shai Barack
Browse files

Use PriorityQueue for tracked Jobs

Previously this code kept an ordered list in a LinkedList.
Using PriorityQueue, with the element ordering as the priority, reduces code
complexity and also reduces runtime complexity (PQ ops are logN).

Randomly noticed this while looking at profiles of l3d cache refills in
system_server. This method was responsible for 0.815% of l3d cache refills.

Change-Id: I0c0bf358e68fef09c8ebcdbe8e5e53ef82cab387
parent 7d0f3c90
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