git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Elijah Newren <newren@gmail.com>
To: "SZEDER Gábor" <szeder.dev@gmail.com>
Cc: Martin Melka <martin.melka@gmail.com>,
	Git Mailing List <git@vger.kernel.org>,
	Samuel Lijin <sxlijin@gmail.com>
Subject: Re: git status --ignored hangs when a deep directory structure present in working tree
Date: Tue, 28 Jan 2020 07:00:03 -0800	[thread overview]
Message-ID: <CABPp-BG44ni2jeaFo8p9w7tfmbeFRS=jdVheTM8f1zdv=Txxjg@mail.gmail.com> (raw)
In-Reply-To: <20200128135707.GD10482@szeder.dev>

On Tue, Jan 28, 2020 at 5:57 AM SZEDER Gábor <szeder.dev@gmail.com> wrote:
>
> On Mon, Jan 27, 2020 at 09:06:01PM -0800, Elijah Newren wrote:
> > > the runtime of 'git status
> > > --ignored' grows quickly with the depth of the untracked directory.
> > > Running this shell loop produces the numbers below:
> > >
> > > for depth in $(seq 10 30)
> > > do
> > >         dirs=$(for i in $(seq 1 $depth) ; do printf 'dir/' ; done)
> > >         rm -rf dir
> > >         mkdir -p $dirs
> > >         >$dirs/untracked-file
> > >         /usr/bin/time --format="$depth: %e" git status --ignored >/dev/null
> > > done
> > >
> > > 10: 0.01
> > > 11: 0.03
> > > 12: 0.05
> > > 13: 0.11
> > > 14: 0.23
> > > 15: 0.47
> > > 16: 0.97
> > > 17: 1.97
> > > 18: 3.88
> > > 19: 7.85
> > > 20: 16.29
> > > 21: 32.92
> > > 22: 76.24
[...]
> > > Unless I messed up my numbers, with a depth of 120 directories it
> > > would take over 6*10^23 years to complete... so yeah, it does qualify
> > > as indefinitely.
> >
> > No comment about how people today are spoiled and addicted to instant
> > gratification?  I mean, can't folks just be a little patient?  ;-)
>
> Nope.  Notice how my shell loop above goes to 30, but the results only
> to 22 :)

I was specifically referring to your 6*10^23 years estimate when I was
jokingly suggesting just a little more patience.  :-)

  reply	other threads:[~2020-01-28 15:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27 10:55 git status --ignored hangs when a deep directory structure present in working tree Martin Melka
2020-01-27 12:08 ` SZEDER Gábor
2020-01-28  5:06   ` Elijah Newren
2020-01-28 13:57     ` SZEDER Gábor
2020-01-28 15:00       ` Elijah Newren [this message]
2020-01-29 22:10     ` Elijah Newren

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to='CABPp-BG44ni2jeaFo8p9w7tfmbeFRS=jdVheTM8f1zdv=Txxjg@mail.gmail.com' \
    --to=newren@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=martin.melka@gmail.com \
    --cc=sxlijin@gmail.com \
    --cc=szeder.dev@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).