hundreds-father-404
11/04/2021, 8:13 PMoutput_paths
, like output_paths=("dir/", "!dir/ignore_me")
?
A substantial slowdown for our Go support is loading all the downloaded modules. We need to capture from the Go process all of pkg/mod
, but we would be safe to ignore pkg/mod/cache
. On my machine, ~20% of the size of my downloaded Go modules is from that folderA substantial slowdown for our Go support is loading all the downloaded modules.I found in a trace last week that loading the
process.output_digest
from LMDB was taking several seconds. This is causing target generation to be really slow for Go when it's not memoized alreadywitty-crayon-22786
11/04/2021, 8:37 PMhundreds-father-404
11/04/2021, 8:38 PMSnapshotSubset
etc? Or changing the Process
(e.g. argv and env vars) to output differently?witty-crayon-22786
11/04/2021, 8:38 PMWhat do you mean? Usingthe latter. reconfiguring the cache location.etc? Or changing theSnapshotSubset
(e.g. argv and env vars) to output differently?Process
average-vr-56795
11/05/2021, 12:54 AMhundreds-father-404
11/05/2021, 12:56 AMwitty-crayon-22786
11/05/2021, 1:44 AMaverage-vr-56795
11/05/2021, 8:02 AMfast-nail-55400
11/05/2021, 10:57 AMcould you relocate the cache instead?or maybe run a
rm -rf path/to/cache
before returning from the Process
invocation in which you are capturing that path?hundreds-father-404
11/05/2021, 3:46 PMwitty-crayon-22786
11/05/2021, 4:56 PMDirectory
only this morning: https://github.com/pantsbuild/pants/issues/13112#issuecomment-962027101