by kevpie · 8y ago · 0 comments
This is the kind of difference I'm getting
GOCACHE=off time go build
16.36 real 37.02 user 6.43 sys
GOCACHE=on time go build 0.66 real 0.53 user 0.37 sys
Number of files including vendor dependencies (some files may not actually be imported)find . -name '*.go' | wc -l
2031I'm ok with that I guess and I suppose I see the benefit when running multiple package test runs where their aren't dependencies between them. But I've just not seen the utility in practice, and it seems like it can introduce bugs where the cache is used incorrectly.