[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 01 May 2005 11:24:30 -0400
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)
> On the slowest machine that I have access to, a 500MHz P3 the
> xterm.elc load time (as reported by elp) goes from 2.2 seconds to 0.3
> seconds if all the substitute-key-definition calls are moved before
> (let ((map (make-sparse-keymap)))
That's a good point: the keys we want to substitute are all in the
"original" map, so we can do the substitute first, on the smaller map, and
add our extra bindings afterwards.
> Stefan, do you have any idea what might be the problem here?
I don't see any problem. substitute-key-definition takes time at least
proportional to the total size of the keymap and it's made slower in the
presence of keymap inheritance, so it's no wonder that the calls to
substitute-key-definition should be faster when done on the smaller