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

Issue 4861042: code review 4861042: strconv: put decimal on stack (Closed)

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

Description

strconv: put decimal on stack This makes decimal a good test case for the escape analysis. With escape analysis: benchmark old ns/op new ns/op delta BenchmarkAtof64Decimal 1954 243 -87.56% BenchmarkAtof64Float 2008 293 -85.41% BenchmarkAtof64FloatExp 10106 8814 -12.78% BenchmarkAtof64Big 5113 3486 -31.82%

Patch Set 1 #

Patch Set 2 : diff -r 1edd4df99360 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 75385610b63d https://go.googlecode.com/hg #

Total comments: 1

Patch Set 4 : diff -r 75385610b63d https://go.googlecode.com/hg #

Patch Set 5 : diff -r 75385610b63d https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -40 lines) Patch
M src/pkg/strconv/atof.go View 1 2 3 15 chunks +29 lines, -29 lines 0 comments Download
M src/pkg/strconv/atof_test.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/strconv/decimal.go View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M src/pkg/strconv/decimal_test.go View 1 2 chunks +6 lines, -2 lines 0 comments Download
M src/pkg/strconv/ftoa.go View 1 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 11 months ago (2011-08-25 20:56:34 UTC) #1
gri
LGTM that said, while faster (which is great), it's not really nicer, now that some ...
13 years, 11 months ago (2011-08-25 21:02:14 UTC) #2
rsc
> that said, while faster (which is great), it's not really nicer, now > that ...
13 years, 11 months ago (2011-08-25 21:31:21 UTC) #3
gri
LGTM much better! - gri
13 years, 11 months ago (2011-08-25 21:46:56 UTC) #4
rsc
13 years, 11 months ago (2011-08-25 21:54:18 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=f3f08d7d306e ***

strconv: put decimal on stack

This makes decimal a good test
case for the escape analysis.

With escape analysis:

benchmark                 old ns/op    new ns/op    delta
BenchmarkAtof64Decimal         1954          243  -87.56%
BenchmarkAtof64Float           2008          293  -85.41%
BenchmarkAtof64FloatExp       10106         8814  -12.78%
BenchmarkAtof64Big             5113         3486  -31.82%

R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/4861042
Sign in to reply to this message.

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