]> granicus.if.org Git - clang/commit
Change the btree algorithm to split nodes bottom-up instead of top-down.
authorChris Lattner <sabre@nondot.org>
Sun, 13 Apr 2008 08:52:45 +0000 (08:52 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Apr 2008 08:52:45 +0000 (08:52 +0000)
commit3b7ff0d143014ea86328e8fa9196a7537dce7bea
tree8cbffdb4519b77b77d4600a2ac59acb751760737
parentb169e903c5d235710b829d4b4922fd8f90ee90b1
Change the btree algorithm to split nodes bottom-up instead of top-down.
This results in an (IMO) simpler algorithm, results in fewer splits, and
is more amenable to delta handling (there is no reason to mutate the tree
at all when adding a delta to a position that already exists in the tree).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Rewrite/DeltaTree.cpp