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

Issue 6337043: code review 6337043: cmd/go: do not scan whole tree on prefix match (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by niemeyer
Modified:
11 years, 2 months ago
CC:
golang-dev
Visibility:
Public.

Description

cmd/go: do not scan whole tree on prefix match A command such as go install some.site/some/pkg/... Currently takes more than 30 seconds to execute in my machine as it scans the whole $GOPATH/src tree. With this change it takes 0.1s.

Patch Set 1 #

Patch Set 2 : code review 6337043: cmd/go: do not scan whole tree on prefix match #

Patch Set 3 : diff -r d730d2e4733d https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r d730d2e4733d https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r d730d2e4733d https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r d730d2e4733d https://go.googlecode.com/hg/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M src/cmd/go/main.go View 1 2 3 4 1 chunk +8 lines, -1 line 2 comments Download

Messages

Total messages: 14
niemeyer
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 12 months ago (2012-06-21 19:22:10 UTC) #1
r
http://codereview.appspot.com/6337043/diff/7001/src/cmd/go/main.go File src/cmd/go/main.go (right): http://codereview.appspot.com/6337043/diff/7001/src/cmd/go/main.go#newcode442 src/cmd/go/main.go:442: // Avoid scanning the whole tree if we know ...
11 years, 11 months ago (2012-07-09 22:19:50 UTC) #2
niemeyer
http://codereview.appspot.com/6337043/diff/7001/src/cmd/go/main.go File src/cmd/go/main.go (right): http://codereview.appspot.com/6337043/diff/7001/src/cmd/go/main.go#newcode442 src/cmd/go/main.go:442: // Avoid scanning the whole tree if we know ...
11 years, 11 months ago (2012-07-09 22:44:29 UTC) #3
niemeyer
Hello golang-dev@googlegroups.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 11 months ago (2012-07-17 02:51:23 UTC) #4
r
LGTM but let rsc sign off too
11 years, 11 months ago (2012-07-17 03:44:47 UTC) #5
rsc
This doesn't seem right. It handles one important case, but it's not general enough. What ...
11 years, 10 months ago (2012-07-29 22:48:02 UTC) #6
rsc
Ignore the garbage at the bottom of my reply.
11 years, 10 months ago (2012-07-29 22:48:19 UTC) #7
niemeyer
On 2012/07/29 22:48:02, rsc wrote: > This doesn't seem right. It handles one important case, ...
11 years, 10 months ago (2012-07-30 05:53:30 UTC) #8
rsc
On 2012/07/30 05:53:30, niemeyer wrote: > On 2012/07/29 22:48:02, rsc wrote: > > This doesn't ...
11 years, 10 months ago (2012-08-03 18:24:43 UTC) #9
rsc
Gustavo, I think this is in your court.
11 years, 9 months ago (2012-08-31 19:59:17 UTC) #10
niemeyer
On 2012/08/31 19:59:17, rsc wrote: > Gustavo, I think this is in your court. Cheers, ...
11 years, 9 months ago (2012-08-31 21:51:48 UTC) #11
niemeyer
*** Abandoned ***
11 years, 2 months ago (2013-04-08 18:27:27 UTC) #12
niemeyer
For the record, the approach suggested by Russ is already in. Hopefully it solves the ...
11 years, 2 months ago (2013-04-08 18:29:33 UTC) #13
albert.strasheim
11 years, 2 months ago (2013-04-08 21:31:37 UTC) #14
Message was sent while issue was closed.
Is this about

https://groups.google.com/d/topic/golang-nuts/muDHV2yx6VA/discussion

?

Not quite sure it's fixed if there's still extra system calls being made?
Sign in to reply to this message.

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