git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Speeding up git stash - help needed
@ 2019-10-25  3:05 Utsav Shah
  0 siblings, 0 replies; only message in thread
From: Utsav Shah @ 2019-10-25  3:05 UTC (permalink / raw)
  To: git

There's been some work to improve the performance of commands using
fsmonitor to skip unnecessary lstats. This has worked wonderfully for
git status on our repository, and I'm trying to see if we can extend
that to more commands.

A profile of git stash on our repository shows a fair bit of time is
spent in the "git reset --hard" that happens at the end. Most of the
time there is spent running lstat in unpack-trees.c -> traverse_trees
-> oneway_merge, which is a fairly generic function and used in a few
places.

Is there a sane way to try skipping those lstats? Does anyone have an
approach they'd recommend? Or is it possible to skip the git reset
--hard in some way? Any suggestions would be welcome.

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

only message in thread, other threads:[~2019-10-25  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25  3:05 Speeding up git stash - help needed Utsav Shah

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