Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jojojames
Copy link
Contributor

quick benchmark

(setq randomcol (all-completions "" 'help--symbol-completion-table nil))

(benchmark-run 100 (dolist (x randomcol)
                     (fussy-fzf-native-score x "a")))
(131.929769 55 7.761159)

(benchmark-run 100 (fzf-native-score-all randomcol "a"))
(8.062838 2 0.3058450000000015)

(benchmark-run 100 (hotfuzz--filter-c "a" randomcol t))
(6.380335 2 0.29229599999999856)

This is a bit slower than without due to the call to Emacs but makes it a lot
easier to manage the list in Emacs afterwards (e.g. company's multibackend
adapter will break the sorted list.)

E.G.
(setq company-backends '((company-capf :with company-yasnippet company-dabbrev-code)))

Breaks.

(setq company-backends '(company-capf))

OK.
@dangduc dangduc merged commit 56ea57d into dangduc:main Nov 30, 2024
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants