• 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
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...