summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>2018-11-15 04:26:33 +0300
committerDavid S. Miller <davem@davemloft.net>2018-11-17 07:39:34 +0300
commit09fd4860ea258d9666f852c213875e6bcdb1204e (patch)
tree6d76770738c3a02fbb7b9e4e1716887348abf383 /tools/perf/scripts/python/export-to-sqlite.py
parent3fcbdaee3b5c4a7f8ea4c7c11fecc009d2a1e7e4 (diff)
downloadlinux-09fd4860ea258d9666f852c213875e6bcdb1204e.tar.xz
etf: Use cached rb_root
ETF's peek() operation is heavily used so use an rb_root_cached instead and leverage rb_first_cached() which will run in O(1) instead of O(log n). Even if on 'timesortedlist_clear()' we could be using rb_erase(), we choose to use rb_erase_cached(), because if in the future we allow runtime changes to ETF parameters, and need to do a '_clear()', this might cause some hard to debug issues. Signed-off-by: Jesus Sanchez-Palencia <jesus.s.palencia@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions