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

Issue 5435089: code review 5435089: strconv: fix documentation (Closed)

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

Description

strconv: fix documentation Also: minor performance fix for large precision results. benchmark old ns/op new ns/op delta strconv_test.BenchmarkFormatFloatDecimal 2734 2734 +0.00% strconv_test.BenchmarkFormatFloat 3141 3139 -0.06% strconv_test.BenchmarkFormatFloatExp 8970 8989 +0.21% strconv_test.BenchmarkFormatFloatBig 3228 3208 -0.62% Fixes issue 2535.

Patch Set 1 #

Patch Set 2 : diff -r 65221f097b81 https://go.googlecode.com/hg/ #

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

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

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M src/pkg/strconv/atoi.go View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M src/pkg/strconv/ftoa.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-12-07 22:26:41 UTC) #1
rsc
LGTM http://codereview.appspot.com/5435089/diff/4001/src/pkg/strconv/atoi.go File src/pkg/strconv/atoi.go (right): http://codereview.appspot.com/5435089/diff/4001/src/pkg/strconv/atoi.go#newcode177 src/pkg/strconv/atoi.go:177: // Atoi is shorthand for int(ParseInt(s, 10, 0)). ...
13 years, 8 months ago (2011-12-07 22:29:33 UTC) #2
gri
PTAL. http://codereview.appspot.com/5435089/diff/4001/src/pkg/strconv/atoi.go File src/pkg/strconv/atoi.go (right): http://codereview.appspot.com/5435089/diff/4001/src/pkg/strconv/atoi.go#newcode177 src/pkg/strconv/atoi.go:177: // Atoi is shorthand for int(ParseInt(s, 10, 0)). ...
13 years, 8 months ago (2011-12-07 22:41:17 UTC) #3
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=65b2fe2d08bc *** strconv: fix documentation Also: minor performance fix for large precision ...
13 years, 8 months ago (2011-12-07 22:45:48 UTC) #4
rsc
13 years, 8 months ago (2011-12-07 22:46:00 UTC) #5
On Wed, Dec 7, 2011 at 17:41,  <gri@golang.org> wrote:
> It's a wash (actually everything gets slightly slower) except for big
> floats:
>
>
> benchmark                                   old ns/op    new ns/op
> delta
> strconv_test.BenchmarkFormatFloatDecimal         2734         2746
> +0.44%
> strconv_test.BenchmarkFormatFloat                3141         3147
> +0.19%
> strconv_test.BenchmarkFormatFloatExp             8970         9017
> +0.52%
> strconv_test.BenchmarkFormatFloatBig             3228         3064
> -5.08%

Seems like a win to me.
Sign in to reply to this message.

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