Add a TODO
This commit is contained in:
parent
97a0e7b2a2
commit
84bd080553
|
@ -53,6 +53,7 @@ func (tree *FragmentedCollapsedTree) Add(subtree CollapsedTree) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tree *FragmentedCollapsedTree) Merge(other FragmentedCollapsedTree) error {
|
func (tree *FragmentedCollapsedTree) Merge(other FragmentedCollapsedTree) error {
|
||||||
|
// TODO: try to make this linear time instead of quadratic; it should be possible since the subtrees are sorted by offset
|
||||||
for _, subtree := range other.subtrees {
|
for _, subtree := range other.subtrees {
|
||||||
if err := tree.Add(subtree); err != nil {
|
if err := tree.Add(subtree); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue