git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* behaviour of untracked files cache in git stable 2.36.1 verison on mac
@ 2022-06-10  2:52 Piyush Gaikwad
  0 siblings, 0 replies; only message in thread
From: Piyush Gaikwad @ 2022-06-10  2:52 UTC (permalink / raw)
  To: git

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?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-10  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  2:52 behaviour of untracked files cache in git stable 2.36.1 verison on mac Piyush Gaikwad

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