aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2019-05-14 15:46:26 -0700
committerLinus Torvalds <[email protected]>2019-05-14 19:52:52 -0700
commita5091fda4e3c202aeb1728a86d0fcd20fd0f4f5e (patch)
treece1b9afe61db8786cae4a5576e599d0f6d46d8e0 /tools/perf/scripts/python/exported-sql-viewer.py
parent0ecb58210bd9de14df62a614be07428ef10f9469 (diff)
ipc/mqueue: optimize msg_get()
Our msg priorities became an rbtree as of d6629859b36d ("ipc/mqueue: improve performance of send/recv"). However, consuming a msg in msg_get() remains logarithmic (still being better than the case before of course). By applying well known techniques to cache pointers we can have the node with the highest priority in O(1), which is specially nice for the rt cases. Furthermore, some callers can call msg_get() in a loop. A new msg_tree_erase() helper is also added to encapsulate the tree removal and node_cache game. Passes ltp mq testcases. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Davidlohr Bueso <[email protected]> Cc: Manfred Spraul <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions