Hrvoje Niksic <hniksic(a)iskon.hr> writes:
> > > This patch will make C-h b a bit slower but more
useful.
> >
> > How much slower?
>
> xemacs -vanilla
>
> (require 'time-date)
> (let ((start (time-to-seconds (current-time)))
> (i 10))
> (while (> i 0)
> (describe-bindings)
> (setq i (1- i)))
> (- (time-to-seconds (current-time)) start))
>
> With xref
> 1.878539085388184
> without xref
> 9.501524925231934
You mean the other way around: the slower time is the one _with_ xref,
right?
Oops. Yes, it is.
Anyway, 9.5 seconds is a long time, especially compared to 1.87. I
think this calls for a more intelligent non-regexp-based solution.
I thought the same but describe-bindings-internal inserts
all keys and its commands. Unfortunately, it is a built-in
function. Hmm. I think I need function to return alist of
key and command.
--
Yoshiki Hayashi