]> git.eshelyaron.com Git - emacs.git/commit
; Optimize 'completion-preview--try-table'
authorEshel Yaron <me@eshelyaron.com>
Thu, 11 Apr 2024 17:16:26 +0000 (19:16 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 12 Apr 2024 08:13:09 +0000 (10:13 +0200)
commitc10fbb4e990226431784d23000fcbbe569c30564
treeff263d4905d4384ba789542c2673b21d5dc3b1de
parent8a37ce3d1637ca4a048ce165393c20863acd8323
; Optimize 'completion-preview--try-table'

* lisp/completion-preview.el (completion-preview-completion-styles):
New variable.  Default to only include the 'basic' completion style.
(completion-preview--try-table): Let-bind 'completion-styles' when
calling 'completion-all-completions'.  With the default value of
'completion-preview-completion-styles', this yields a significant
performance improvement (up to 4 times faster compared to the
'substring' style when tested with 'elisp-completion-at-point').

Suggested by Ergus <spacibba@aol.com>
lisp/completion-preview.el