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

Issue 2791633002: Avoid many temporary allocations when serializing service protocol responses (Closed)

Created:
3 years, 8 months ago by Cutch
Modified:
3 years, 8 months ago
Reviewers:
zra, Chris Bracken, rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Avoid many temporary allocations when serializing service protocol responses - [x] Use an on stack buffer for small string allocations. - [x] Avoid unnecessary calls to strlen. Related #29207 BUG= R=rmacnak@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/904beb3d9d2e86ffcf933fd5076a0979af1dba47

Patch Set 1 #

Total comments: 4

Patch Set 2 : zra review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -15 lines) Patch
M runtime/vm/json_stream.cc View 1 6 chunks +37 lines, -15 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Cutch
3 years, 8 months ago (2017-03-31 17:39:15 UTC) #3
zra
https://codereview.chromium.org/2791633002/diff/1/runtime/vm/json_stream.cc File runtime/vm/json_stream.cc (right): https://codereview.chromium.org/2791633002/diff/1/runtime/vm/json_stream.cc#newcode493 runtime/vm/json_stream.cc:493: const intptr_t kOnStackBufferCapacity = 4096; Maybe something like: class ...
3 years, 8 months ago (2017-03-31 17:47:09 UTC) #4
siva
https://codereview.chromium.org/2791633002/diff/1/runtime/vm/json_stream.cc File runtime/vm/json_stream.cc (right): https://codereview.chromium.org/2791633002/diff/1/runtime/vm/json_stream.cc#newcode502 runtime/vm/json_stream.cc:502: if (len + 1 >= kOnStackBufferCapacity) { ((len + ...
3 years, 8 months ago (2017-03-31 17:59:33 UTC) #6
Cutch
https://codereview.chromium.org/2791633002/diff/1/runtime/vm/json_stream.cc File runtime/vm/json_stream.cc (right): https://codereview.chromium.org/2791633002/diff/1/runtime/vm/json_stream.cc#newcode493 runtime/vm/json_stream.cc:493: const intptr_t kOnStackBufferCapacity = 4096; On 2017/03/31 17:47:09, zra ...
3 years, 8 months ago (2017-03-31 18:04:47 UTC) #7
rmacnak
lgtm
3 years, 8 months ago (2017-03-31 18:08:30 UTC) #8
zra
lgtm
3 years, 8 months ago (2017-03-31 18:13:18 UTC) #9
Cutch
3 years, 8 months ago (2017-03-31 20:20:18 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
904beb3d9d2e86ffcf933fd5076a0979af1dba47 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698