GNU bug report logs - #7343
Making flyspell incredibly fast when checking whole files

Previous Next

Package: emacs;

Reported by: Brandon Craig Rhodes <brandon <at> rhodesmill.org>

Date: Sat, 6 Nov 2010 15:18:02 UTC

Severity: normal

Done: Agustin Martin <agustin.martin <at> hispalinux.es>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 7343 <at> debbugs.gnu.org (full text, mbox):

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 7343 <at> debbugs.gnu.org, Brandon Craig Rhodes <brandon <at> rhodesmill.org>
Subject: Re: bug#7343: Making flyspell incredibly fast when checking whole
	files
Date: Mon, 8 Nov 2010 19:46:37 +0100
On Mon, Nov 08, 2010 at 01:10:42PM -0500, Stefan Monnier wrote:
> > Anyway, flyspell does try to take advantage of the above behavior by
> > checking whether a region is larger than flyspell-large-region
> > characters, and if so then it runs the spell checker as a separate
> > process with "-l".  But then it does something that, in many cases, is
> > rather ruinous: it takes every misspelling so identified, and passes it
> > *back* through the normal interactive spell-checking logic!  This is
> > because all of the real logic of what to do with a misspelling - how to
> > highlight it, how to search for nearby instances of the same word, how
> > to cache spellings, and so forth - is bound up in flyspell-word, so the
> > flyspell-external-point-words function, which processes the actual
> > misspellings discovered by flyspell-large-region, really has no other
> > choice but to call flyspell-word for each misspelling.
> 
> IIUC this sounds very good (tho it only speeds up flyspell-region and
> not flyspell-post-command-hook) and the patch looks good and small
> enough for inclusion as a "tiny patch".  Agustin, could you double check
> that it's OK and install it in the trunk if so?

Hi,

I also agree that Brandon's patch sounds very good, although I could not yet 
really test it. I hope to have time for this in no more than two or three 
days.

I will also add something in the docstring about the new option.

-- 
Agustin




This bug report was last modified 14 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.