Hi Gábor, On Sat, 13 Feb 2016, SZEDER Gábor wrote: > Maybe even run some numbers on Windows? Here you are: -- snip -- # Junio's 494398473, i.e. `master $ cur=m ; time __gitcomp_nl "$(__git_refs '' 1)" real 0m8.260s user 0m0.265s sys 0m0.216s # Gábor's 6fc6f416, i.e. with strip=2 $ cur=m ; time __gitcomp_nl "$(__git_refs '' 1)" real 0m2.072s user 0m0.295s sys 0m0.203s # Gábor's 47b146d7, i.e. `completion-PoC-refs-speedup` $ cur=m ; time __gitcomp_direct "$(__git_refs_PoC '' 1)" real 0m1.574s user 0m0.030s sys 0m0.015s -- snap -- This is with a fairly normal, real-world repository: -- snip -- $ git for-each-ref | wc -l 10303 -- snap -- Ciao, Dscho