Open jblachly opened 5 years ago
else if
s prior to the call and therefore have redundant if/else in function body.Templated version of zigZig Does not seem to improve performance much if at all. This is in branch template-zigzag.
This issue should be moved to https://github.com/blachlylab/intervaltree
reduce use of
updateMax
(may not need to bubble up since we update on the way down on insert)templatize zig, ziz-zig, and zig-zag by direction to factor out if/else (although these if/else may be branch predicted well already)
findOverlapsWith
: static arraystack
. Will need to instrument this to see how deep an unbalanced tree we have after loading chain file.findOverlapsWith
: static arrayret
. (would also want to changeIntervalAVLTree
to match)(Benchmark) When # overlapping intervals > 1, splay once or more