Description
Summary
We're trying to reduce git clean
time for our developers. We have a C# repo used by hundreds of developers that invokes rush build to build 80+ rush projects. Long story short, git clean is part of their workflow due to a full build with caching being faster than incremental rebuilds when switching branches.
Currently, git clean can take 5 to 10 minutes to run. From what I can tell, git spends most of the time enumerating files in common/temp.
Repro steps
The symlinks created point to the virtual store in common/temp, which is indistinguishable from regular files to git. Just enumerating the files takes a while.
$ time find . | wc -l
263979
real 0m19.698s
user 0m1.531s
sys 0m11.717s
Expected result:
I'd like to specify an environment variable when running rush commands or installing rush that basically has the effect of RUSH_TEMP_FOLDER. Then I would set this environment variable to a location outside of the git repository.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status