On Sun, 20 Feb 2022 15:51:11 +0200
Orgad Shaneh wrote:
> Turns out I was using Git for Windows and not the cygwin release.

I have tested using Git-for-windows (git version 2.34.1.vfs.0.0).

With
seq 1 1000 | xargs touch

real    0m1.812s
user    0m0.015s
sys     0m0.031s

With
seq 1 10000 | xargs touch

real    0m3.666s
user    0m0.000s
sys     0m0.000s

It seems that it may hang for about 1 sec at the line
Removing abc/def/ghi/jkl/991
Removing ab<hangs 1sec>
before
Removing def/
line.

With
seq 1 10000 | xargs touch
the short hang is here:
Removing abc/def/ghi/jkl/9878
Removing abc/def/ghi/jkl<hangs 1sec>

If the script

#!/bin/sh
mkdir -p chunked
cd chunked
/cygdrive/c/Program\ Files/Git/mingw64/bin/git init
mkdir -p abc/def/ghi/jkl def
cd abc/def/ghi/jkl
touch foo
/cygdrive/c/Program\ Files/Git/mingw64/bin/git add foo
seq 1 10000 | xargs touch
cd ../../../../def
seq 1 100000 | xargs touch
cd ..
time /cygdrive/c/Program\ Files/Git/mingw64/bin/git clean -dfx

is used, the hang here:
Removing abc/def/ghi/jkl/9878
Removing abc/def/ghi/jkl<hangs 15sec>
is more than 10sec.

It seems that removing def/ takes the time,
and the output stops before displying 
Removing abc/def/ghi/jkl/9879
[...]
Removing abc/def/ghi/jkl/9999

I guess the output is just buffered in somewhere
which is not flushed.

-- 
Takashi Yano <takashi.y...@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to