public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Cc: Orgad Shaneh <orgads@gmail.com>
Subject: Re: Console output hangs in the middle of a line
Date: Sun, 20 Feb 2022 22:37:51 +0900	[thread overview]
Message-ID: <20220220223751.c3434a059a5b54861f54ff1f@nifty.ne.jp> (raw)
In-Reply-To: <CAGHpTBKXJ0kPugus36m0Mg55y=Ephd7KJNWV-xgyzNxEdAP6zg@mail.gmail.com>

On Sun, 20 Feb 2022 13:43:33 +0200
Orgad Shaneh <orgads@gmail.com> wrote:
> mkdir -p chunked
> cd chunked
> git init
> mkdir -p abc/def/ghi/jkl def
> cd abc/def/ghi/jkl
> touch foo
> git add foo
> seq 1 1000 | xargs touch
> cd ../../../../def
> seq 1 10000 | xargs touch
> cd ..
> git clean -dfx

Thanks for the test case. However, I cannot reproduce
your problem.

$ uname -a
CYGWIN_NT-10.0 Express5800-S70 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin
$ git --version
git version 2.35.1

I have made a shell script such as:

#!/bin/sh
mkdir -p chunked
cd chunked
git init
mkdir -p abc/def/ghi/jkl def
cd abc/def/ghi/jkl
touch foo
git add foo
seq 1 1000 | xargs touch
cd ../../../../def
seq 1 10000 | xargs touch
cd ..
time git clean -dfx

and resut is as follows.

Removing abc/def/ghi/jkl/1
Removing abc/def/ghi/jkl/10
Removing abc/def/ghi/jkl/100
Removing abc/def/ghi/jkl/1000
Removing abc/def/ghi/jkl/101
Removing abc/def/ghi/jkl/102
Removing abc/def/ghi/jkl/103
Removing abc/def/ghi/jkl/104
Removing abc/def/ghi/jkl/105
Removing abc/def/ghi/jkl/106
Removing abc/def/ghi/jkl/107
Removing abc/def/ghi/jkl/108
[...]
Removing abc/def/ghi/jkl/995
Removing abc/def/ghi/jkl/996
Removing abc/def/ghi/jkl/997
Removing abc/def/ghi/jkl/998
Removing abc/def/ghi/jkl/999
Removing def/

real    0m3.307s
user    0m0.296s
sys     0m2.983s

How long does the test case hang?

In my environment, from the line
Removing abc/def/ghi/jkl/1
to the line
Removing abc/def/ghi/jkl/999
takes less than 1 second, and the line
Removing def/
takes the rest of the time.


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

  reply	other threads:[~2022-02-20 13:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16  9:49 Orgad Shaneh
2022-02-16  9:59 ` Takashi Yano
2022-02-16 10:01   ` Takashi Yano
2022-02-20 11:43 ` Orgad Shaneh
2022-02-20 13:37   ` Takashi Yano [this message]
2022-02-20 13:43     ` Takashi Yano
2022-02-20 13:48     ` Takashi Yano
2022-02-20 13:51     ` Orgad Shaneh
2022-02-20 14:22       ` Takashi Yano
2022-02-20 14:34         ` Takashi Yano
2022-02-20 14:42           ` Orgad Shaneh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220220223751.c3434a059a5b54861f54ff1f@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    --cc=orgads@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).