The Wayback Machine - https://web.archive.org/web/20221207052647/https://github.com/atom/spell-check/pull/102
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

Speed up spell checking #102

Merged
merged 7 commits into from Jan 11, 2016
Merged

Conversation

maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented Jan 5, 2016

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 Jan 8, 2016
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 Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant