git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kristoffer Haugsbakk" <code@khaugsbakk.name>
To: "Rohit Ner" <rohitner1@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git log causing hang while browsing upstream linux
Date: Tue, 04 Apr 2023 22:27:26 +0200	[thread overview]
Message-ID: <5b99135f-c1d4-434b-b508-35f5d66dd2bb@app.fastmail.com> (raw)
In-Reply-To: <CAKazavxTXwcZFtL2XyU3MpaUR=snWY8w8Lwpco+mkbqm2nWE=w@mail.gmail.com>

On Tue, Apr 4, 2023, at 22:13, Rohit Ner wrote:
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> 1. git clone https://github.com/torvalds/linux.git
> 2. git checkout master
> 3. git log --oneline --graph

Seems like `--graph` is expensive.

FWIW: on my machine:

    $ time git log --oneline --graph | head -1 
    *   76f598ba7d8e Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    real	0m10.616s
    user	0m9.594s
    sys	0m0.654s

Second attempt is only marginally faster.

-- 
Kristoffer Haugsbakk

  reply	other threads:[~2023-04-04 20:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-04 20:13 git log causing hang while browsing upstream linux Rohit Ner
2023-04-04 20:27 ` Kristoffer Haugsbakk [this message]
2023-04-04 20:50   ` Kristoffer Haugsbakk
2023-04-10 17:07     ` Rohit Ner
2023-04-11  0:00       ` Taylor Blau
2023-04-11  9:45         ` Kristoffer Haugsbakk
2023-04-16  7:09         ` SZEDER Gábor
2023-04-16 12:46           ` How to write to the commit graph on clone? Kristoffer Haugsbakk
2023-04-16 15:24             ` Ævar Arnfjörð Bjarmason

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=5b99135f-c1d4-434b-b508-35f5d66dd2bb@app.fastmail.com \
    --to=code@khaugsbakk.name \
    --cc=git@vger.kernel.org \
    --cc=rohitner1@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 NNTP newsgroup(s).