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

Issue 9395087: Speedup the snapshot serialization. (Closed)

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

Description

Speedup the snapshot serialization. Replaced multiple calls to AddNumber with a single AddString. AddNumber may now print the value directly into the output buffer. BUG=none TEST=none Committed: https://code.google.com/p/v8/source/detail?r=10784

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a constant for decimal length. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -33 lines) Patch
M src/profile-generator.cc View 1 9 chunks +61 lines, -33 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
alexeif
Hi Mike, Thanks for your comments! Could you please take another look.
8 years, 10 months ago (2012-02-21 12:33:54 UTC) #1
yurys
https://chromiumcodereview.appspot.com/9395087/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9395087/diff/1/src/profile-generator.cc#newcode3564 src/profile-generator.cc:3564: static const int kBufferSize = 3 * 20 + ...
8 years, 10 months ago (2012-02-21 12:53:26 UTC) #2
mnaganov (inactive)
On 2012/02/21 12:53:26, Yury Semikhatsky wrote: > https://chromiumcodereview.appspot.com/9395087/diff/1/src/profile-generator.cc > File src/profile-generator.cc (right): > > https://chromiumcodereview.appspot.com/9395087/diff/1/src/profile-generator.cc#newcode3564 ...
8 years, 10 months ago (2012-02-21 13:31:17 UTC) #3
alexeif
On 2012/02/21 13:31:17, Mikhail Naganov (Chromium) wrote: > On 2012/02/21 12:53:26, Yury Semikhatsky wrote: > ...
8 years, 10 months ago (2012-02-21 13:49:54 UTC) #4
alexeif
https://chromiumcodereview.appspot.com/9395087/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9395087/diff/1/src/profile-generator.cc#newcode3564 src/profile-generator.cc:3564: static const int kBufferSize = 3 * 20 + ...
8 years, 10 months ago (2012-02-21 13:50:00 UTC) #5
mnaganov (inactive)
LGTM with a comment https://chromiumcodereview.appspot.com/9395087/diff/6001/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9395087/diff/6001/src/profile-generator.cc#newcode3432 src/profile-generator.cc:3432: MaxDecimalDigitsIn<sizeof(long long)>::kUnsigned + 1; // ...
8 years, 10 months ago (2012-02-21 14:21:53 UTC) #6
alexeif
8 years, 10 months ago (2012-02-21 14:33:16 UTC) #7
On 2012/02/21 14:21:53, Mikhail Naganov (Chromium) wrote:
> LGTM with a comment
> 
>
https://chromiumcodereview.appspot.com/9395087/diff/6001/src/profile-generato...
> File src/profile-generator.cc (right):
> 
>
https://chromiumcodereview.appspot.com/9395087/diff/6001/src/profile-generato...
> src/profile-generator.cc:3432: MaxDecimalDigitsIn<sizeof(long
long)>::kUnsigned
> + 1;  // NOLINT
> I will change "long long" to "T" (and update the comment), because "long long"
> isn't the part of ISO 1998 C++ standard and hence doesn't compile in a
> standalone V8.
> 
> If you are OK with this, I'll submit your change.

I'm ok. Thanks a lot!

Powered by Google App Engine
This is Rietveld 408576698