Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Use treap-based marker index - #109

Merged
nathansobo merged 12 commits into
masterfrom
ns-new-marker-index
Nov 4, 2015
Merged

nathansobo merged 12 commits into
masterfrom
ns-new-marker-index

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

This PR switches to using a new treap-based marker-index library, which is about 3x faster. Because the dump operation on this new index is incapable of omitting portions of the tree that don't contain markers on which we're maintaining history, this PR also makes a breaking API change to move the maintainHistory option to marker layers rather than individual markers.

The maintainHistory change in turn required an implementation change in Atom core in order to maintain selections in their own layer, necessitating a few more API enhancements such as the ability to copy a marker layer and inclusion of history-tracked marker layer snapshots in the history. Since deprecated APIs were in my way as I made these changes, I went ahead and removed deprecated APIs as well.

Nathan Sobo added 12 commits October 29, 2015 07:53
This will make it easier to snapshot the entire marker index for layers
where we want to maintain history.
It’s now controlled at the MarkerLayer-level
We need it to support certain synchronous guarantees for selections in
TextEditor.
If markers have never had an onDidChange subscriber, don’t bother
visiting them. This saves time on large marker layers.
nathansobo pushed a commit that referenced this pull request Nov 4, 2015
@nathansobo
nathansobo merged commit 99bb840 into master Nov 4, 2015
@nathansobo
nathansobo deleted the ns-new-marker-index branch November 4, 2015 02:31
@nathansobo

Copy link
Copy Markdown
Contributor Author

Published as v8.0.0.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant