Hello Félix-Antoine, since there were only a few answers so far (which does not mean that your effort is not appreciated!), I'll do, even if my knowledge on the area you're working is limited.
Félix-Antoine Bourbonnais wrote: > In February, I wrote about my intention to code a patch to implement an > inline (on the fly) spellchecker for LyX (see bug 718). Lots of users are looking forward to that feature, so great somebody's finally having a go. > This is a preliminary version of the patch. There is still a lot of things > missing but before I continue, I want your opinion and your advice. > > 1. My principal concern is about loading a document. It is slow (Very > Slow!) because I'm checking every word in the document on the main thread > (not in the background). Graphics and preview snippets are (or should be) loaded in the background. Angus Leeming has written a forkedcall class for this purpose (it's in support/), which should even work on windows. Perhaps you can have a look at that and try to catch the attention of Angus, whose jet lag must be cured in the meantime. Also, I think you shouldn't check the whole document on startup at once, but just the content which is visible on screen and probably a few paragraphs above and below (that's probably what Lars meant). This is also the way graphics and previews are loaded. I won't comment on the code itself. Others are more qualified to do so. Regards, Jürgen