diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2018-12-06 22:18:15 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-25 17:12:09 +0300 |
commit | 55ecd6310f9fe48cf7e435be408862da1e0e6baa (patch) | |
tree | f4f4d1c79b4404d488f1e2a1c22660862a1561cc /tools/perf/util/rb_resort.h | |
parent | f3acb3a8a2081344801974ac5ec8e1b0d6f0ef36 (diff) | |
download | linux-55ecd6310f9fe48cf7e435be408862da1e0e6baa.tar.xz |
perf callchain: Use cached rbtrees
At the cost of an extra pointer, we can avoid the O(logN) cost of
finding the first element in the tree (smallest node), which is
something required for nearly every in/srcline callchain node deletion
(in/srcline__tree_delete()).
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20181206191819.30182-4-dave@stgolabs.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/rb_resort.h')
0 files changed, 0 insertions, 0 deletions