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

Issue 24251012: Improve the memory consumption and performance of our string buffer implementation. (Closed)

Created:
7 years, 3 months ago by kasperl
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Improve the memory consumption and performance of our string buffer implementation. R=lrn@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=27698

Patch Set 1 #

Patch Set 2 : Update comment. #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -55 lines) Patch
M runtime/lib/string_buffer_patch.dart View 1 3 chunks +118 lines, -40 lines 9 comments Download
M sdk/lib/_internal/compiler/implementation/code_buffer.dart View 2 chunks +9 lines, -12 lines 3 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kasperl
7 years, 3 months ago (2013-09-20 09:21:48 UTC) #1
Lasse Reichstein Nielsen
LGTM, STV, HUZZAH, etc., but get a VM guys comments as well. https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart File runtime/lib/string_buffer_patch.dart ...
7 years, 3 months ago (2013-09-20 11:40:17 UTC) #2
kasperl
https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart File runtime/lib/string_buffer_patch.dart (right): https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart#newcode107 runtime/lib/string_buffer_patch.dart:107: // allow me to pass in a grownable array ...
7 years, 3 months ago (2013-09-20 12:04:27 UTC) #3
kasperl
As this solves a memory consumption issue we're facing in dart2js in our string buffer ...
7 years, 3 months ago (2013-09-20 12:07:22 UTC) #4
kasperl
Committed patchset #2 manually as r27698 (presubmit successful).
7 years, 3 months ago (2013-09-20 12:07:53 UTC) #5
srdjan
lgtm https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart File runtime/lib/string_buffer_patch.dart (right): https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart#newcode107 runtime/lib/string_buffer_patch.dart:107: // allow me to pass in a grownable ...
7 years, 2 months ago (2013-09-25 20:56:39 UTC) #6
kasperl
https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart File runtime/lib/string_buffer_patch.dart (right): https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_patch.dart#newcode107 runtime/lib/string_buffer_patch.dart:107: // allow me to pass in a grownable array ...
7 years, 2 months ago (2013-09-26 05:30:28 UTC) #7
srdjan
7 years, 2 months ago (2013-09-26 13:22:45 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_...
File runtime/lib/string_buffer_patch.dart (right):

https://codereview.chromium.org/24251012/diff/4001/runtime/lib/string_buffer_...
runtime/lib/string_buffer_patch.dart:107: // allow me to pass in a grownable
array directly, but for
On 2013/09/26 05:30:29, kasperl wrote:
> On 2013/09/25 20:56:40, srdjan wrote:
> > s/grownable/growable/
> 
> :-)
> 
> Maybe you could help me fix the TODO? If concatAllNative was a little bit more
> lenient, I might be able to pass in a _parts unmodified here and do something
> ala:
> 
> String compacted = _StringBase._concatAllNative(
>     _parts, 
>     _partsCompactionIndex,                    // Start
>     _partsCompactionIndex + PARTS_TO_COMPACT  // End
> );
> 
> in the _compact method. That should help by copying and allocating less.

Yes, I will do that.

Powered by Google App Engine
This is Rietveld 408576698