Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(90)

Issue 7369044: code review 7369044: cmd/go: don't call ImportDir unnecessarily (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by ality
Modified:
11 years, 7 months ago
Reviewers:
CC:
rsc, r, golang-dev
Visibility:
Public.

Description

cmd/go: don't call ImportDir unnecessarily 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

Patch Set 1 #

Patch Set 2 : diff -r aeeffd25807b https://code.google.com/p/go/ #

Patch Set 3 : diff -r aeeffd25807b https://code.google.com/p/go/ #

Patch Set 4 : diff -r aeeffd25807b https://code.google.com/p/go/ #

Patch Set 5 : diff -r 01d14d9c8b32 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -13 lines) Patch
M src/cmd/go/main.go View 1 2 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 3
ality
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2013-02-20 11:41:10 UTC) #1
r
LGTM
11 years, 7 months ago (2013-02-21 00:00:58 UTC) #2
ality
11 years, 7 months ago (2013-02-22 04:09:37 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=1852ee47001a ***

cmd/go: don't call ImportDir unnecessarily

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://codereview.appspot.com/7369044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b