{"thread":{"id":"57980","subject":"behaviour of untracked files cache in git stable 2.36.1 verison on mac","startedAt":"2022-06-10T02:52:56Z","lastAt":"2022-06-10T02:52:56Z","messageCount":1,"participants":["Piyush Gaikwad"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"457008","messageId":"CABsvAmr0-1eLQeCR-hhz_CObOS2bgjRf7v+YG5BOY8h5nn+2kQ@mail.gmail.com","threadId":"57980","inReplyTo":null,"subject":"behaviour of untracked files cache in git stable 2.36.1 verison on mac","fromName":"Piyush Gaikwad","fromEmail":"piyushgaikwad321@gmail.com","sentAt":"2022-06-10T02:52:41Z","receivedAt":"2022-06-10T02:52:56Z","isPatch":false,"sender":{"key":"piyushgaikwad321@gmail.com","avatar":null},"body":"Hello all,\n\nI am currently on Mac.\nIn Git 2.35.1, when I cloned my repository, it took 7 seconds to\nenumerate the untracked files and when I did time git status, it took\napproximately 2 seconds. And, when I checkout to another branch it\ntook approximately 15 seconds and when I checkout back to my main repo\ngit status took 15 seconds (which should not take this much time).\nWork-around for this in (2.35.1) was: I set core.untrackedcache=true\nand GIT_FORCE_UNTRACKEDCACHE=1 which helped to update the\nuntrackedcache and improve the performance of git status of\n(approximately 4 seconds).\n\nBut now in Git 2.36.1, this work-around doesn't seem to work. It takes\napproximately 20 seconds on all branches.\n\nPossible changes in the code:\nIn Git 2.35.1, code in dir.c: GIT_FORCE_UNTRACKED_CACHE,0\nand the same in Git 2.36.1, code in dir.c:GIT_FORCE_UNTRACKED_CACHE, -1\n\nIs this code change which made the git config variables unfit for the\ncurrent stable version or is it something else?\nHow can I solve this untracked files cache performance issue; is there\nany workaround?\n"}]}