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

Issue 3416043: code review 3416043: time: make After use fewer goroutines and host processes. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by rog
Modified:
14 years, 2 months ago
Reviewers:
gri
CC:
adg, rsc, niemeyer, r, golang-dev
Visibility:
Public.

Description

time: make After use fewer goroutines and host processes. With credit to Gustavo Niemeyer, who hinted at this approach in #go-nuts.

Patch Set 1 #

Patch Set 2 : code review 3416043: time: make After use fewer goroutines and host processes. #

Total comments: 15

Patch Set 3 : code review 3416043: time: make After use fewer goroutines and host processes. #

Patch Set 4 : code review 3416043: time: make After use fewer goroutines and host processes. #

Total comments: 8

Patch Set 5 : code review 3416043: time: make After use fewer goroutines and host processes. #

Patch Set 6 : code review 3416043: time: make After use fewer goroutines and host processes. #

Patch Set 7 : code review 3416043: time: make After use fewer goroutines and host processes. #

Total comments: 6

Patch Set 8 : code review 3416043: time: make After use fewer goroutines and host processes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -12 lines) Patch
M src/pkg/time/sleep.go View 1 2 3 4 5 6 7 3 chunks +102 lines, -12 lines 0 comments Download
M src/pkg/time/sleep_test.go View 2 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 16
rog
Hello adg, rsc, niemeyer (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-12-03 09:09:06 UTC) #1
niemeyer
Thanks for submitting this Roger. A few comments are inlined. http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go#newcode23 ...
14 years, 3 months ago (2010-12-03 13:30:57 UTC) #2
r
http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go#newcode14 src/pkg/time/sleep.go:14: type event struct { comments please http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go#newcode64 src/pkg/time/sleep.go:64: mu.Unlock() ...
14 years, 3 months ago (2010-12-03 20:03:51 UTC) #3
rog
PTAL http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/2001/src/pkg/time/sleep.go#newcode23 src/pkg/time/sleep.go:23: var mu sync.Mutex On 2010/12/03 13:30:57, niemeyer wrote: ...
14 years, 3 months ago (2010-12-04 09:26:18 UTC) #4
r
http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go#newcode14 src/pkg/time/sleep.go:14: type event struct { this type and its associated ...
14 years, 3 months ago (2010-12-04 19:18:49 UTC) #5
adg
Thanks for writing this, but the fun part is still ahead of you: tests. http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go ...
14 years, 3 months ago (2010-12-05 22:43:49 UTC) #6
rog
PTAL (added a couple of tests too) http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go#newcode14 src/pkg/time/sleep.go:14: type event ...
14 years, 3 months ago (2010-12-06 14:22:13 UTC) #7
r
http://codereview.appspot.com/3416043/diff/9002/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/9002/src/pkg/time/sleep.go#newcode16 src/pkg/time/sleep.go:16: t int64 // The absolute time that the event ...
14 years, 3 months ago (2010-12-06 16:20:52 UTC) #8
rog
PTAL http://codereview.appspot.com/3416043/diff/9002/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/9002/src/pkg/time/sleep.go#newcode16 src/pkg/time/sleep.go:16: t int64 // The absolute time that the ...
14 years, 3 months ago (2010-12-06 17:35:27 UTC) #9
r
http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go File src/pkg/time/sleep.go (right): http://codereview.appspot.com/3416043/diff/13001/src/pkg/time/sleep.go#newcode90 src/pkg/time/sleep.go:90: t := Nanoseconds() i slightly prefer keeping it where ...
14 years, 3 months ago (2010-12-06 19:13:13 UTC) #10
r
LGTM
14 years, 3 months ago (2010-12-06 19:18:53 UTC) #11
r
*** Submitted as http://code.google.com/p/go/source/detail?r=fc3b75653c76 *** time: make After use fewer goroutines and host processes. With ...
14 years, 3 months ago (2010-12-06 19:19:32 UTC) #12
gri
This submission appears to have broken several builds. http://godashboard.appspot.com/?n=30&p=1 - gri On Mon, Dec 6, ...
14 years, 3 months ago (2010-12-06 21:17:57 UTC) #13
rsc
I couldn't reproduce it locally but I submitted a tbr fix that requires a bit ...
14 years, 3 months ago (2010-12-06 21:23:10 UTC) #14
rog
this was always going to be a potential problem with the test, although i'm surprised ...
14 years, 3 months ago (2010-12-07 10:44:15 UTC) #15
rog
14 years, 2 months ago (2011-01-07 17:22:55 UTC) #16
*** Abandoned ***
Sign in to reply to this message.

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