delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/20/08:39:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 763F23858D39
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 21KDbm1s015194
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1645364268;
bh=kyeQ4PPJ919OQA6MslvpEPNLFmtldoBnYjoAb6AHvOU=;
h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
b=RYJGmxFpyf5Cnf+FUnWviJiKw8BTFewx7DAMwe8kcWWIqgxSvTPn/IFG2jS6BOew7
q/3oDOVqby7QJlVrz93UM/yiZ0yDELeTt2dXSDpV4wknq1SF507Rde1ucg1Ydb9bNQ
D1QKiC5FsO6F0tCgQmEqtb3U8Qax6EDIfE6GAoPlOBE47HAufhGTsQuvYZN8ZbpU/w
fHA2FSOdyOLvOYzfpk3KeW1UpH1FkAeGI00cS5xojzylgLTC2liAbOZTe0Y1TyrbEk
6w1Bqu125V+zDv2IXEBrkSjMiiCjDux43TRQQdofJ/DsY1FiA9bebcH6n7VybSpNuW
W/x82BCc7nQrA==
X-Nifty-SrcIP: [119.150.36.16]
Date: Sun, 20 Feb 2022 22:37:51 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: Console output hangs in the middle of a line
Message-Id: <20220220223751.c3434a059a5b54861f54ff1f@nifty.ne.jp>
In-Reply-To: <CAGHpTBKXJ0kPugus36m0Mg55y=Ephd7KJNWV-xgyzNxEdAP6zg@mail.gmail.com>
References: <CAGHpTBJ1JHS5=3WBNjkRP3f8i2gqQPRU7Kv6jj9gTj1Nc3BrcQ AT mail DOT gmail DOT com>
<CAGHpTBKXJ0kPugus36m0Mg55y=Ephd7KJNWV-xgyzNxEdAP6zg AT mail DOT gmail DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: Orgad Shaneh <orgads AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sun, 20 Feb 2022 13:43:33 +0200
Orgad Shaneh <orgads AT gmail DOT 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 DOT yano AT nifty DOT ne DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019