8000 Add multithreading by jojojames · Pull Request #20 · dangduc/fzf-native · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add multithreading #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 30, 2024
Merged

Add multithreading #20

merged 5 commits into from
Nov 30, 2024

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
0