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

Issue 8100044: code review 8100044: go/printer: use strings.Split instead of specialized code (Closed)

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

Description

go/printer: use strings.Split instead of specialized code With the faster strings package, the difference between the specialized code and strings.Split is in the noise: benchmark old ns/op new ns/op delta BenchmarkPrint 16724291 16686729 -0.22% (Measured on a Mac Pro, 2.8GHz Quad-core Intel Xeon, 4GB 800 MHz DDR2, Mac OS X 10.8.3)

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -30 lines) Patch
M src/pkg/go/printer/printer.go View 1 2 chunks +1 line, -30 lines 0 comments Download

Messages

Total messages: 3
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 11 months ago (2013-03-28 22:40:08 UTC) #1
bradfitz
LGTM On Thu, Mar 28, 2013 at 3:40 PM, <gri@golang.org> wrote: > Reviewers: golang-dev1, > ...
11 years, 11 months ago (2013-03-28 22:46:49 UTC) #2
gri
11 years, 11 months ago (2013-03-28 22:47:43 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=5e794a4e3035 ***

go/printer: use strings.Split instead of specialized code

With the faster strings package, the difference between
the specialized code and strings.Split is in the noise:

benchmark         old ns/op    new ns/op    delta
BenchmarkPrint     16724291     16686729   -0.22%

(Measured on a Mac Pro, 2.8GHz Quad-core Intel Xeon,
4GB 800 MHz DDR2, Mac OS X 10.8.3)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/8100044
Sign in to reply to this message.

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