On 2016-01-06, Bram Moolenaar wrote:
> Gary Johnson wrote:
>
> > I just noticed that it is suddenly taking several seconds for Vim to
> > execute z=. In the following example, it takes 10 seconds from
> > the time I type z= until the list of suggestions is displayed.
> >
> > $ echo cscope | vim -N -u NONE -c 'set spell' -
> >
> > I think it is due to the spelling dictionary rather than Vim itself
> > because: I use z= frequently; I just noticed this delay today; and
> > versions of Vim back to 7.4.567 (c. January 2015) but using current
> > (7.4.1051) runtime files exhibit the same delay. The display of
> > suggestions used to happen almost instantaneously. I checked a Red
> > Hat 7.1 distribution's /usr/bin/vim, which is version 7.4.160 and
> > uses its own runtime files, and it displays the suggestion list
> > immediately after z=.
> >
> > I see this on two installations of Vim on different Linux systems,
> > one with 7.4.1051 installed and the other with 7.4.1046 installed.
> > Some informal experimentation indicates that the delay is
> > proportional to the length of the word being looked up.
>
> This may be because I have updated the spell file generation to use new
> dictionaries. There is no patch for this change, there is a git submit:
> https://github.com/vim/vim/commit/cc7ff3fcd8c8fd7da6faac98a138b830ec5c00d8
Christian committed it to his hg mirror as changeset 7401.
> You could get the .spl files from before this commit and check that this
> fixes your problem.
Yep. I hg-updated a local repo to 7400 and used its runtime
directory as my 'rtp', i.e.,
echo cscope | vim -N -u NONE --cmd "set rtp=$PWD" -c 'set spell' -
and the response time was again immediate. After an hg update to
7401, the response time increased to about 10 seconds.
> If that does fix it, I'm not sure what to do. Perhaps we should drop
> support for en_AU and en_NZ, since these are not available as a new
> version. However, the en_CA and en_GB .dic files are already very
> different. E.g. "Zuckerberg" is only in en_GB.dic. We may have to just
> go back to the old word lists.
I don't understand. The sizes of the runtime/spell/en* files in the
two revisions don't appear to differ by enough to account for an
over 10-fold increase in search times.
Regards,
Gary
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.