> 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 non-inheriting map. Stefan _______________________________________________ Emacs-pretest-bug mailing list Emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug