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

Issue 4276078: code review 4276078: path/filepath: Use a channel to return matches from Glo...

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 9 months ago by crawshaw2
Modified:
12 years, 5 months ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

path/filepath: Use a channel to return matches from Glob() instead of a slice. For when a glob can match millions of files.

Patch Set 1 #

Patch Set 2 : diff -r 65a786a78417 https://go.googlecode.com/hg/ #

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

Total comments: 4

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

Total comments: 5

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -24 lines) Patch
M src/pkg/path/filepath/match.go View 1 2 3 4 5 3 chunks +23 lines, -19 lines 0 comments Download
M src/pkg/path/filepath/match_test.go View 1 2 3 4 3 chunks +31 lines, -5 lines 0 comments Download

Messages

Total messages: 18
crawshaw2
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 9 months ago (2011-03-25 17:08:36 UTC) #1
crawshaw2
On 2011/03/25 17:08:36, david.crawshaw wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
14 years, 9 months ago (2011-03-25 17:11:24 UTC) #2
rsc
I'm not sure whether this should be the default. On the one hand most of ...
14 years, 9 months ago (2011-03-25 17:31:14 UTC) #3
crawshaw2
Hello golang-dev@googlegroups.com, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-03-25 17:48:35 UTC) #4
crawshaw2
P.s. with generics I could write (predicating over T): func collect(ch chan <-T) []T { ...
14 years, 9 months ago (2011-03-25 17:52:08 UTC) #5
r2
On Mar 25, 2011, at 10:52 AM, david.crawshaw@zentus.com wrote: > P.s. with generics I could ...
14 years, 9 months ago (2011-03-25 17:55:13 UTC) #6
r
http://codereview.appspot.com/4276078/diff/6001/src/pkg/path/filepath/match.go File src/pkg/path/filepath/match.go (right): http://codereview.appspot.com/4276078/diff/6001/src/pkg/path/filepath/match.go#newcode210 src/pkg/path/filepath/match.go:210: // Glob returns the names of all files matching ...
14 years, 9 months ago (2011-03-25 17:57:39 UTC) #7
crawshaw2
Hello golang-dev@googlegroups.com, rsc, r2, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-03-25 19:39:25 UTC) #8
crawshaw2
On 2011/03/25 17:55:13, r2 wrote: > True, but if f() returns a slice and then ...
14 years, 9 months ago (2011-03-25 19:44:23 UTC) #9
rsc
channels are the inconsistency, not slices
14 years, 9 months ago (2011-03-25 19:51:57 UTC) #10
r
http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match_test.go File src/pkg/path/filepath/match_test.go (right): http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match_test.go#newcode98 src/pkg/path/filepath/match_test.go:98: func collect(ch <-chan string) []string { i thought you ...
14 years, 9 months ago (2011-03-25 19:55:21 UTC) #11
bradfitz
http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match.go File src/pkg/path/filepath/match.go (right): http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match.go#newcode216 src/pkg/path/filepath/match.go:216: matches := make(chan string) Should this be a buffered ...
14 years, 9 months ago (2011-03-25 19:59:42 UTC) #12
r
http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match.go File src/pkg/path/filepath/match.go (right): http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match.go#newcode216 src/pkg/path/filepath/match.go:216: matches := make(chan string) Some buffering would be fine, ...
14 years, 9 months ago (2011-03-25 20:17:14 UTC) #13
crawshaw2
Cheers. (I just found hg upload.) http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match.go File src/pkg/path/filepath/match.go (right): http://codereview.appspot.com/4276078/diff/10002/src/pkg/path/filepath/match.go#newcode216 src/pkg/path/filepath/match.go:216: matches := make(chan ...
14 years, 9 months ago (2011-03-25 20:27:32 UTC) #14
crawshaw2
Ping. Any interest in this? On 2011/03/25 20:27:32, david.crawshaw wrote: > Cheers. (I just found ...
14 years, 9 months ago (2011-04-02 19:56:59 UTC) #15
rsc
apparently not
13 years, 7 months ago (2012-06-03 04:50:19 UTC) #16
remyoudompheng
R=close
12 years, 5 months ago (2013-07-20 07:13:49 UTC) #17
remyoudompheng
12 years, 5 months ago (2013-07-20 21:28:03 UTC) #18

          
Sign in to reply to this message.

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