Skip to content
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

slowness with big completion list #26

Closed
yannk opened this issue Feb 22, 2023 · 0 comments · Fixed by #30
Closed

slowness with big completion list #26

yannk opened this issue Feb 22, 2023 · 0 comments · Fixed by #30
Assignees
Labels
bug Something isn't working

Comments

@yannk
Copy link

yannk commented Feb 22, 2023

When fifc is invoked with a big list of possible completions, in my case > 1000 then it slows down significantly (maybe related to #20)

According to the profiling It seems to be because of the dir_test in the completion_group determination:

7	7	---> set -l dir_test "test -d '$complist[1]'"
13016	1091021	---> for comp in $complist[2..-1]...
32	40	----> set dir_test (string collect $dir_test " -a -d '$comp'")
8	8	-----> string collect $dir_test " -a -d '$comp'"
33	43	----> set dir_test (string collect $dir_test " -a -d '$comp'")
(...)
710	710	-----> string collect $dir_test " -a -d '$comp'"
1197	1932	----> set dir_test (string collect $dir_test " -a -d '$comp'")
735	735	-----> string collect $dir_test " -a -d '$comp'"
22	2363	---> if test -n "$is_null"...
5	5	----> test -n "$is_null"
2	2	----> test -n "$is_null"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants