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

Make 'markers-updated' event usable for initiating batched updates in text-editor-presenter - #66

Merged
maxbrunsfeld merged 8 commits into
masterfrom
mb-marker-view
Jun 4, 2015
Merged

maxbrunsfeld merged 8 commits into
masterfrom
mb-marker-view

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

This PR started out by introducing a way to observe markers in a given range, but got a lot simpler as we experimented with the performance in Atom.

Emitting the markers-updated event whenever any marker moves allows us to avoid observing each decorated marker in the text-editor presenter. This will help with performance when there are lots of markers.

For Atom's purposes, a generic 'markers-updated' event is just
as useful as the MarkerObservationWindow functionality, and
less computationally expensive to provide.

Signed-off-by: Nathan Sobo <[email protected]>
@maxbrunsfeld maxbrunsfeld changed the title Add an API for observing the markers in a given range Make 'markers-updated' event usable for initiating batched updates in text-editor-presenter Jun 3, 2015
maxbrunsfeld pushed a commit that referenced this pull request Jun 4, 2015
Make 'markers-updated' event usable for initiating batched updates in text-editor-presenter
@maxbrunsfeld
maxbrunsfeld merged commit 5ece467 into master Jun 4, 2015
@maxbrunsfeld
maxbrunsfeld deleted the mb-marker-view branch June 4, 2015 17:36
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