aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorStefan Monnier2026-01-09 22:34:32 -0500
committerStefan Monnier2026-01-09 22:34:32 -0500
commit058bac45b2f64dee35e26e22b00bafde41aa5aec (patch)
tree92ed0175c6f37410a5cab2e8af7649fc968fe34a /java
parent6c818936e00bf24201dbfa8916cd91aca24f84c9 (diff)
downloademacs-058bac45b2f64dee35e26e22b00bafde41aa5aec.tar.gz
emacs-058bac45b2f64dee35e26e22b00bafde41aa5aec.zip
cl-generic.el: Avoid an O(N^2) behavior
When N methods are defined, don't (re)build the dispatch function each time since it takes O(N) time to build it. * lisp/emacs-lisp/cl-generic.el (cl--generic-method): Add docstring. (cl--generic): New `lazy-function` slot. (cl--generic-make-function): Use it and delay building the dispatch function until the next call. [toplevel]: Simplify the bootstrap hacks a bit.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions