Re: [PATCH] completion: improve ls-files filter performance

2018-04-04 Thread Johannes Schindelin
Hi drizzd, On Wed, 4 Apr 2018, Clemens Buchacher wrote: > From the output of ls-files, we remove all but the leftmost path > component and then we eliminate duplicates. We do this in a while loop, > which is a performance bottleneck when the number of iterations is large > (e.g. for 6 files i

[PATCH] completion: improve ls-files filter performance

2018-04-04 Thread Clemens Buchacher
>From the output of ls-files, we remove all but the leftmost path component and then we eliminate duplicates. We do this in a while loop, which is a performance bottleneck when the number of iterations is large (e.g. for 6 files in linux.git). $ COMP_WORDS=(git status -- ar) COMP_CWORD=3; time