[Lldb-commits] [PATCH] D74759: Treat RangeDataVector as an augmented BST

Unnar Freyr Erlendsson via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 18 03:53:28 PST 2020


unnar created this revision.
unnar added reviewers: labath, teemperor.
Herald added subscribers: lldb-commits, JDevlieghere.
Herald added a project: LLDB.

Since RangeDataVector is assumed to always be sorted we can treat it as an flattened BST and augment it with additional information about the ranges belonging to each "subtree". By storing the maximum endpoint in every subtree we can query for intervals in O(log n) time.

Note: this is not a complete patch, I just wanted to put it out there and see how you feel about this. Also what kind of testing could and should be done for this.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D74759

Files:
  lldb/include/lldb/Utility/RangeMap.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74759.245121.patch
Type: text/x-patch
Size: 4789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200218/fd2ae565/attachment-0001.bin>


More information about the lldb-commits mailing list