Re: [PATCH] git-completion.bash: always swallow error output of for-each-ref
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 13, 2016, 17:14 UTC
- Message-ID
- <alpine.DEB.2.20.1602131811570.2964@virtualbox>
- In-Reply-To
- <20160213145333.Horde.ZTzk8ajnzz2uB2UcNeCdPtB@webmail.informatik.kit.edu>
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