Re: git slow unless piped to cat
- From
SZEDER Gábor <szeder.dev@gmail.com>
- Date
- Aug 27, 2019, 08:41 UTC
- Message-ID
- <20190827084111.GU20404@szeder.dev>
- In-Reply-To
- <20190827081559.mt5wjpdvqzn62dib@pengutronix.de>
On Tue, Aug 27, 2019 at 10:15:59AM +0200, Uwe Kleine-König wrote:
Show 21 quoted lines
> I have a problem here with git being slow in some situations. > Using git 2.23.0 (from Debian) the effect is: > > ukl@dude.ptx:/ptx/src/git/linux.git$ sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"; time git show v5.2 > tag v5.2 > ... > > real 0m12.727s > user 0m0.300s > sys 0m0.371s > > But to get the actual data isn't the problem: > > ukl@dude.ptx:/ptx/src/git/linux.git$ sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"; time git show v5.2 | cat > tag v5.2 > ... > > real 0m0.764s > user 0m0.014s > sys 0m0.020s >
How does 'git --no-pager show v5.2' perform? If it's as fast as the case piping the output to cat, then look into what pager and pager options you use.