be-tree
be-tree copied to clipboard
segment functions could use binary search
In the implementation, segment_within
and segment_before
must first find the segment with the same id
. We could improve this function by doing the following:
- Make sure segments are sorted in events. This is already the case but we would have to make sure
- Use binary search