Skip to content

Conversation

@TOTBWF
Copy link
Collaborator

@TOTBWF TOTBWF commented Nov 27, 2021

No description provided.

@TOTBWF TOTBWF changed the title [WIP] :serv' [WIP] 🐕‍🦺 Cooltt Server v2.0 Nov 27, 2021
Comment on lines +39 to +41
let containing pos t =
(* FIXME: This is suboptimal *)
CCList.of_iter @@ SegTree.values @@ SegTree.filter (fun range _ -> range.start <= pos && pos <= range.stop) t
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not be correct, because the "same" span can show up as multiple segments, and "shadowed" spans will not even be in the tree.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest eventually removing containing completely---or we have to rethink the entire framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants