Better HN
topnewbestaskshowjobs
Log inSign up

kevpie

5 karma · joined Oct 6, 2010 (16y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

I was going to say this sounds like Go Go Red Ball. Wonderful to see the nod to Nate Heagy in the repo!

comment 8y ago · link · parent

You are right, no changes. With a change, most objects are still valid as cached and can result in similar speedup. I'm also wary of caching introducing bugs and intend to continue to CI without it as a safety net. May even require a no cache build before pushing commits.

comment 8y ago · link · parent

Larger projects can now effectively be TDD'd in. Or rather you modify or fix a test in a test file and the tests compile and execute very fast. Or even simply the call to `go run`, `go build` and `go test` will be significantly faster.

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

    2031