Closed ff2000 closed 4 years ago
does it takes time every time you call emerge @
It takes time every time. ~10 sec until the completion menu opens and further 10 sec to move the cursor into the menu. If I drop caches it adds ~10 secs to the first time I call it. As I usually don't emerge sets that often chances are big that caches got dropped already. I tried it as root with a custom zshrc and as user with prezto. both the same issue. Which settings could generate/fix that behaviour?
Another performance issue:
emerge --list
The reason I use completion is that I am not sure how exactly those options/sets/... are called. --list-sets or --sets? If I have to wait for such a long time I also can read the man page and search for the correct spelling of the option ;)
Is this still an issue? It doesn't look like I can reproduce that significant of a delay, but we could double-check the pkg comp cache to make sure set info isn't getting reparsed on every comp call.
performance in general seems to be better. Completing sets takes about 3-4 seconds on my laptop now, the more powerful desktop is close to instantanious (with caches, dropped caches and it goes up to ~5 seconds). All other completions I tested last time also work faster, especially "--list
I think it is safe to assume that when I types "@" I want to complete sets. I don't know of any other completion that could start with "@".
Currently it takes quite a lot of disk/cpu time when completing after an "@". I mostly need it for "@preserved-rebuild" which I like to type wrong. For the moment I use an alias to workaround preformance issues when completing sets.