mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
09685c3682
`apt-cache` is just so incredibly slow that filtering against the final results just doesn't cut it. Attempting to match against 'ac.*' (already taking advantage of changing short search terms into prefix-only matches) would take 35 seconds, all of bottlenecked before the filtering step. This change uses more of a heuristic to filter `apt-cache` results directly (before additional filtering) to speed things up. A variety of different limits from 100 to 5000 were timed and their result sets compared to see what ended up artificially limiting valid completions vs what took too long to be considered functional/usable and this is where we ended up. |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |