git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git stash --include-untracked walks ignored directories
@ 2020-06-09 19:33 Brian Malehorn
  2020-06-10  3:21 ` Elijah Newren
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Malehorn @ 2020-06-09 19:33 UTC (permalink / raw)
  To: git

Hi,

Not sure if this is the right place to send this, but I'm here to
report a performance regression with git stash --include-untracked.

Here's a quick way to reproduce:

1. make a directory with a lot of ignored files

$ find ignored -type f | wc -l
   50000

$ cat .gitignore
ignored

2. touch foo

3. time git stash --include-untracked

git version 2.26.0:
real    0m0.094s

git version 2.27.0.83.g0313f36c6e:
real    0m1.913s

This is a much bigger pain point on my work repo, which has 1.4
million ignored files(!). As you can imagine it takes a long time to
run git stash. While it might be valid to question why anyone would
need that many files for any purpose, the bottom line is that I told
git to ignore this directory, and it didn't ignore it.

In the meantime I've reverted to 2.26.0 which doesn't have this
performance regression. Let me know if you want any other information
related to this issue.

Thanks,
Brian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-10  5:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09 19:33 git stash --include-untracked walks ignored directories Brian Malehorn
2020-06-10  3:21 ` Elijah Newren
2020-06-10  5:56   ` Brian Malehorn

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