• Anthony Martin's avatar
    cmd/go: don't call ImportDir unnecessarily · ed1ac056
    Anthony Martin authored
    This significantly speeds up the go tool on
    slow file systems (or those with cold caches).
    
    The following numbers were obtained using
    an encrypted ext4 file system running on
    Linux 3.7.9.
    
    # Before
    $ sudo sysctl -w 'vm.drop_caches=3'
    $ time go list code.google.com/p/go.net/... | wc -l
    9
    
    real	0m16.921s
    user	0m0.637s
    sys	0m0.317s
    
    # After
    $ sudo sysctl -w 'vm.drop_caches=3'
    $ time go list code.google.com/p/go.net/... | wc -l
    9
    
    real	0m8.175s
    user	0m0.220s
    sys	0m0.177s
    
    R=rsc, r
    CC=golang-dev
    https://golang.org/cl/7369044
    ed1ac056
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
ld Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
prof Loading commit data...
vet Loading commit data...
yacc Loading commit data...