aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorPeng Zhang <[email protected]>2023-12-15 15:46:32 +0800
committerAndrew Morton <[email protected]>2023-12-20 14:48:14 -0800
commit7e552dcd803f4ff60165271c573ab2e38d15769f (patch)
treee21e4895f508b6f2e9d12722accb4edf6c8a8eb5 /tools/perf/scripts/python/task-analyzer.py
parentf7ef5fe74aaf634f2fe50e0f3339a405cced5d01 (diff)
maple_tree: avoid checking other gaps after getting the largest gap
The last range stored in maple tree is typically quite large. By checking if it exceeds the sum of the remaining ranges in that node, it is possible to avoid checking all other gaps. Running the maple tree test suite in user mode almost always results in a near 100% hit rate for this optimization. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peng Zhang <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions