From: Piyush Gaikwad <piyushgaikwad321@gmail.com>
To: git@vger.kernel.org
Subject: behaviour of untracked files cache in git stable 2.36.1 verison on mac
Date: Thu, 9 Jun 2022 19:52:41 -0700 [thread overview]
Message-ID: <CABsvAmr0-1eLQeCR-hhz_CObOS2bgjRf7v+YG5BOY8h5nn+2kQ@mail.gmail.com> (raw)
Hello all,
I am currently on Mac.
In Git 2.35.1, when I cloned my repository, it took 7 seconds to
enumerate the untracked files and when I did time git status, it took
approximately 2 seconds. And, when I checkout to another branch it
took approximately 15 seconds and when I checkout back to my main repo
git status took 15 seconds (which should not take this much time).
Work-around for this in (2.35.1) was: I set core.untrackedcache=true
and GIT_FORCE_UNTRACKEDCACHE=1 which helped to update the
untrackedcache and improve the performance of git status of
(approximately 4 seconds).
But now in Git 2.36.1, this work-around doesn't seem to work. It takes
approximately 20 seconds on all branches.
Possible changes in the code:
In Git 2.35.1, code in dir.c: GIT_FORCE_UNTRACKED_CACHE,0
and the same in Git 2.36.1, code in dir.c:GIT_FORCE_UNTRACKED_CACHE, -1
Is this code change which made the git config variables unfit for the
current stable version or is it something else?
How can I solve this untracked files cache performance issue; is there
any workaround?
reply other threads:[~2022-06-10 2:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CABsvAmr0-1eLQeCR-hhz_CObOS2bgjRf7v+YG5BOY8h5nn+2kQ@mail.gmail.com \
--to=piyushgaikwad321@gmail.com \
--cc=git@vger.kernel.org \
/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).