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

Runaway spell check on long document #53

@lorddoig

Description

@lorddoig

With spell-check v0.55.0, atom v0.187.0, and OS X 10.10.3.

I've been using AsciiDoc on Atom to write some stuff (but changing to plain text mode makes no difference). The document exhibiting this problem is around 5000 words long. I noticed that the red wavy line was lagging tremendously behind my typing, jumping forward a character or two at a time sometimes up to 5 words back! Then today things degraded further: any kind of typing will spin Atom Helper to 50-90% CPU, and AppleSpell to near the same -- the fans go to Mach 3, etc.

I had a quick look at the source and am I right in thinking that it dumps the entire document buffer into the spell checker every ::getStoppedChangingDelay ms when actively editing? For me, that means checking 5000 words 3.333 times a second, when 99% of the time 4990+ of them are static. Surely it'd be better to do only the current line/bit that changed since the last run?

Sorry for being all problems and no solutions; I'd have considered doing a PR but CoffeeScript and I aren't friends 😟

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions