Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] 🐕‍🦺 Cooltt Server v2.0 #289

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

[WIP] 🐕‍🦺 Cooltt Server v2.0 #289

wants to merge 39 commits into from

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.

2 participants