runtime: convert type algorithms to Go
Actually it mostly deletes code -- alg.print and alg.copy go away.
There was only one usage of alg.print for debug purposes.
Alg.copy is used in chan.goc, but Keith replaces them with
memcopy during conversion, so alg.copy is not needed as well.
Converting them would be significant amount of work
for no visible benefit.
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 8 months ago
(2014-08-29 17:49:32 UTC)
#1
https://codereview.appspot.com/139930044/diff/100001/src/pkg/runtime/alg.go File src/pkg/runtime/alg.go (right): https://codereview.appspot.com/139930044/diff/100001/src/pkg/runtime/alg.go#newcode51 src/pkg/runtime/alg.go:51: {memhash, memequal}, // alg_MEM You can specify an index ...
10 years, 8 months ago
(2014-08-29 17:56:09 UTC)
#2
On Fri, Aug 29, 2014 at 11:28 PM, <crawshaw@golang.org> wrote: > LGTM > > but ...
10 years, 8 months ago
(2014-08-29 19:39:12 UTC)
#5
On Fri, Aug 29, 2014 at 11:28 PM, <crawshaw@golang.org> wrote:
> LGTM
>
> but check with Russ about that print you removed from chan.goc.
That printf is in C chansend and there is already Go chansend, so that
printf is already dead.
On Fri, Aug 29, 2014 at 3:28 PM, <crawshaw@golang.org> wrote: > LGTM > but check ...
10 years, 8 months ago
(2014-08-29 19:48:38 UTC)
#6
On Fri, Aug 29, 2014 at 3:28 PM, <crawshaw@golang.org> wrote:
> LGTM
> but check with Russ about that print you removed from chan.goc.
>
Anyone is welcome to review this CLs, but in general all this conversion
stuff is subtle enough that you should (for any conversion CL) wait for an
LGTM from me or Keith before submitting. Thanks.
Russ
*** Submitted as https://code.google.com/p/go/source/detail?r=7b4959d78977 *** runtime: convert type algorithms to Go Actually it mostly deletes ...
10 years, 8 months ago
(2014-08-30 04:41:03 UTC)
#9
*** Submitted as https://code.google.com/p/go/source/detail?r=7b4959d78977 ***
runtime: convert type algorithms to Go
Actually it mostly deletes code -- alg.print and alg.copy go away.
There was only one usage of alg.print for debug purposes.
Alg.copy is used in chan.goc, but Keith replaces them with
memcopy during conversion, so alg.copy is not needed as well.
Converting them would be significant amount of work
for no visible benefit.
LGTM=crawshaw, rsc, khr
R=golang-codereviews, crawshaw, khr
CC=golang-codereviews, rsc
https://codereview.appspot.com/139930044
Issue 139930044: code review 139930044: runtime: convert type algorithms to Go
(Closed)
Created 10 years, 8 months ago by dvyukov
Modified 10 years, 8 months ago
Reviewers: gobot
Base URL:
Comments: 4