Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Issue 9950146: Use ad hoc itoa function instead of OS::SNPrintF when serializing heap snapshots (Closed)

Created:
8 years, 8 months ago by yurys
Modified:
8 years, 8 months ago
CC:
v8-dev, pfeldman
Visibility:
Public.

Description

Switching to a custom itoa implementation reduces serialization time at least by the factor of 2. Committed: https://code.google.com/p/v8/source/detail?r=11223

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -26 lines) Patch
M src/profile-generator.cc View 1 2 4 chunks +50 lines, -26 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yurys
8 years, 8 months ago (2012-04-04 09:43:21 UTC) #1
mnaganov (inactive)
https://chromiumcodereview.appspot.com/9950146/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9950146/diff/1/src/profile-generator.cc#newcode3511 src/profile-generator.cc:3511: static char* itoa(int value, char* buffer) { Have you ...
8 years, 8 months ago (2012-04-04 10:03:30 UTC) #2
alexeif
What is the performance impact of the change? https://chromiumcodereview.appspot.com/9950146/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9950146/diff/1/src/profile-generator.cc#newcode3511 src/profile-generator.cc:3511: static ...
8 years, 8 months ago (2012-04-04 11:20:49 UTC) #3
yurys
https://chromiumcodereview.appspot.com/9950146/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9950146/diff/1/src/profile-generator.cc#newcode3511 src/profile-generator.cc:3511: static char* itoa(int value, char* buffer) { On 2012/04/04 ...
8 years, 8 months ago (2012-04-04 12:32:16 UTC) #4
mnaganov (inactive)
lgtm
8 years, 8 months ago (2012-04-04 12:44:31 UTC) #5
alexeif
Still, what is the performance impact? https://chromiumcodereview.appspot.com/9950146/diff/3/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9950146/diff/3/src/profile-generator.cc#newcode3514 src/profile-generator.cc:3514: value = -value; ...
8 years, 8 months ago (2012-04-04 13:01:26 UTC) #6
yurys
8 years, 8 months ago (2012-04-04 13:31:01 UTC) #7
On 2012/04/04 13:01:26, alexeif wrote:
> Still, what is the performance impact?
> 
See the description, it makes serialization twice as fast.

> https://chromiumcodereview.appspot.com/9950146/diff/3/src/profile-generator.cc
> File src/profile-generator.cc (right):
> 
>
https://chromiumcodereview.appspot.com/9950146/diff/3/src/profile-generator.c...
> src/profile-generator.cc:3514: value = -value;
> A minor thing, but it won't work for INT_MIN. Perhaps it's worth to add a
note,
> so if someone decides to reuse the function he'll be aware.
Done.

Powered by Google App Engine
This is Rietveld 408576698