[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: faster unicode character name completion
From: |
Juri Linkov |
Subject: |
Re: faster unicode character name completion |
Date: |
Mon, 07 Dec 2009 22:28:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
> But I have a better idea: most of the time is not spent building the
> completion table, but rather just weeding out all the "chars" that don't
> have names, or should I say, looking for the few rare chars that do
> have a name.
>
> So the patch below seems to eb a good compromise: it uses up just about
> 1000K cons cells (i.e. 16KB on 64bit systems) to keep the precomputed
> set of ~34K chars that do have a name, so that building the completion
> table takes only a couple seconds.
Before this change building the completion table took 10s, now only 2s.
The size was 88,203, now 91,595. I think it's a reasonable price for
such a speedup.
BTW, a related problem: it would be better to hide old obsolete Unicode
names to not advertise them, but still allow completions on them.
For instance, duplicate names such as
name: LATIN CAPITAL LETTER A WITH ACUTE
old-name: LATIN CAPITAL LETTER A ACUTE
add too much noise. Maybe to use the same approach as used for
`completion-ignored-extensions', i.e. to ignore old names, but don't
ignore if all possible completions end in one of them.
--
Juri Linkov
http://www.jurta.org/emacs/
- Emacs 23.2 Pretest next week, Chong Yidong, 2009/12/03
- faster unicode character name completion, Kenichi Handa, 2009/12/04
- Re: faster unicode character name completion, Deniz Dogan, 2009/12/04
- Re: faster unicode character name completion, Juanma Barranquero, 2009/12/04
- Re: faster unicode character name completion, Florian Beck, 2009/12/04
- Re: faster unicode character name completion, Stefan Monnier, 2009/12/04
- Re: faster unicode character name completion, Miles Bader, 2009/12/04
- Re: faster unicode character name completion, Kenichi Handa, 2009/12/06
- Re: faster unicode character name completion, Kenichi Handa, 2009/12/07
- Re: faster unicode character name completion, Stefan Monnier, 2009/12/07
- Re: faster unicode character name completion,
Juri Linkov <=
- Re: faster unicode character name completion, Stefan Monnier, 2009/12/07
- Re: faster unicode character name completion, Miles Bader, 2009/12/07
- Re: faster unicode character name completion, Kenichi Handa, 2009/12/07
- Re: faster unicode character name completion, Stefan Monnier, 2009/12/07
- Re: faster unicode character name completion, Chong Yidong, 2009/12/08
- Re: faster unicode character name completion, Kenichi Handa, 2009/12/08
- Re: faster unicode character name completion, Deniz Dogan, 2009/12/09
Re: Emacs 23.2 Pretest next week, Dan Nicolaescu, 2009/12/04