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

Issue 5503085: code review 5503085: strconv: use a variable buffer size for decimal represe... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by remyoudompheng
Modified:
12 years ago
Reviewers:
rsc
CC:
golang-dev, remy_archlinux.org
Visibility:
Public.

Description

strconv: use a variable buffer size for decimal representations. Fast cases usually only needed a small fraction of the previous 800-byte fixed size buffer. old ns/op new ns/op diff BenchmarkAtof64Decimal 327 192 -41% BenchmarkAtof64Float 382 247 -35% BenchmarkAtof64FloatExp 429 299 -30% BenchmarkAtof64Big 710 582 -18% BenchmarkAppendFloatDecimal 472 345 -27% BenchmarkAppendFloat 483 357 -26% BenchmarkAppendFloatExp 496 369 -26% BenchmarkAppendFloatNegExp 485 361 -25% BenchmarkAppendFloatBig 646 520 -19%

Patch Set 1 #

Patch Set 2 : diff -r 7ec969250bfc https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 7ec969250bfc https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 518f09c59498 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : code review 5503085: strconv: use a variable buffer size for decimal represe... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+-1 lines, --1 lines) Patch
~rietveld~placeholder~ View 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 10
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 4 months ago (2011-12-31 11:51:01 UTC) #1
remyoudompheng
This changeset needs CL 5489128 to be applied first, otherwise it would introduce unwanted allocations. ...
12 years, 4 months ago (2011-12-31 11:51:56 UTC) #2
sanjay.m
Does this fix http://code.google.com/p/go/issues/detail?id=2642 ? I feel like changing to a variable length buffer would ...
12 years, 4 months ago (2012-01-03 23:44:20 UTC) #3
remyoudompheng
On 2012/1/4 sanjay.m <balasanjay@gmail.com> wrote: > Does this fix http://code.google.com/p/go/issues/detail?id=2642 ? I feel > like ...
12 years, 4 months ago (2012-01-04 05:50:27 UTC) #4
sanjay.m
Ahh, excuse me, from the CL title I thought you were changing it to be ...
12 years, 4 months ago (2012-01-04 06:00:36 UTC) #5
remyoudompheng
Hello golang-dev@googlegroups.com, balasanjay@gmail.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), Please take another look.
12 years, 3 months ago (2012-01-14 11:21:41 UTC) #6
rsc
http://codereview.appspot.com/5503085/diff/8001/src/pkg/strconv/atof.go File src/pkg/strconv/atof.go (right): http://codereview.appspot.com/5503085/diff/8001/src/pkg/strconv/atof.go#newcode360 src/pkg/strconv/atof.go:360: var d decimal Before, decimal had an 800-byte buffer ...
12 years, 3 months ago (2012-01-16 23:06:21 UTC) #7
remyoudompheng
It also looks very hacky to me. Actually none of the fast paths needs the ...
12 years, 3 months ago (2012-01-16 23:13:44 UTC) #8
rsc
Okay. Let me know when I should take another look. Thanks very much. Russ
12 years, 3 months ago (2012-01-17 00:17:04 UTC) #9
remyoudompheng
12 years ago (2012-04-07 09:30:23 UTC) #10
*** Abandoned ***
Sign in to reply to this message.

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