From c4316a266185c4adbb8d15a04b9552882b3c34a8 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Mon, 6 Feb 2017 19:33:01 +0530 Subject: [PATCH] ; bytecomp.el (byte-compile-cond-jump-table): Add TODO note --- lisp/emacs-lisp/bytecomp.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index c70e1bf5ed8..d5a163e5fdd 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -4057,6 +4057,8 @@ Return a list of the form ((TEST . VAR) ((VALUE BODY) ...))" (cases (cadr table-info)) jump-table test-obj body tag donetag default-tag default-case) (when (and cases (not (= (length cases) 1))) + ;; TODO: Once :linear-search is implemented for `make-hash-table' + ;; set it to `t' for cond forms with a small number of cases. (setq jump-table (make-hash-table :test test :purecopy t :size (if (assq 'default cases) -- 2.39.2