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

Speed up spell checking #102

Merged
merged 7 commits into from
Jan 11, 2016
Merged

Conversation

maxbrunsfeld
Copy link
Contributor

Runaway background task

This is fixed by atom/node-spellchecker#27. See that PR for details

UI Unresponsiveness

This is partially improved by doing less work for each misspelling marker. We now put the misspelling markers in their own marker layer so that they can be decorated and destroyed in a batch (similar to https://github.com/atom/find-and-replace/pull/588/files).

There is still noticable lag when editing large files, due to the cost of recreating all of the spell-check markers. We may want to move toward re-checking changed parts of the buffer in the UI process, rather than re-checking the entire buffer in a background process. This would be very similar to how we re-scan regions of the buffer in find-and-replace.

@maxbrunsfeld maxbrunsfeld changed the title Speed up spell checking task Speed up spell checking Jan 8, 2016
@maxbrunsfeld maxbrunsfeld force-pushed the mb-use-bulk-spell-checking-method branch from 0b4d35d to 7bee024 Compare January 8, 2016 19:19
maxbrunsfeld pushed a commit that referenced this pull request Jan 11, 2016
@maxbrunsfeld maxbrunsfeld merged commit 404804b into master Jan 11, 2016
@maxbrunsfeld maxbrunsfeld deleted the mb-use-bulk-spell-checking-method branch January 11, 2016 23:35
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