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

Issue 218493012: Make non-copying version of BytesBuidler and make file-reads faster. (Closed)

Created:
6 years, 8 months ago by Anders Johnsen
Modified:
6 years, 8 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Make non-copying version of BytesBuidler and make file-reads faster. The non-copying version is internally, as this is always the behaviour we want, when receiving data from the system. File-reads are also further improved, by only reading data in chunks, if initial length is 0. This is a special case where the file can be a character device. Overall improvement is around a factor of 6. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=34589

Patch Set 1 #

Patch Set 2 : Fix readAsBytes to not complete in a long future chain. #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -98 lines) Patch
M runtime/bin/builtin.dart View 1 chunk +3 lines, -15 lines 0 comments Download
M sdk/lib/io/bytes_builder.dart View 1 2 5 chunks +122 lines, -38 lines 0 comments Download
M sdk/lib/io/data_transformer.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/file_impl.dart View 1 1 chunk +38 lines, -16 lines 0 comments Download
M sdk/lib/io/websocket_impl.dart View 6 chunks +7 lines, -28 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Anders Johnsen
6 years, 8 months ago (2014-04-01 08:08:02 UTC) #1
Anders Johnsen
Now fix a better readAsBytes version (no long future chain on completion).
6 years, 8 months ago (2014-04-01 08:36:37 UTC) #2
Søren Gjesse
https://codereview.chromium.org/218493012/diff/20001/sdk/lib/io/bytes_builder.dart File sdk/lib/io/bytes_builder.dart (right): https://codereview.chromium.org/218493012/diff/20001/sdk/lib/io/bytes_builder.dart#newcode12 sdk/lib/io/bytes_builder.dart:12: * buffer. Note that it's optimized for IO, using ...
6 years, 8 months ago (2014-04-01 08:58:39 UTC) #3
Anders Johnsen
https://codereview.chromium.org/218493012/diff/20001/sdk/lib/io/bytes_builder.dart File sdk/lib/io/bytes_builder.dart (right): https://codereview.chromium.org/218493012/diff/20001/sdk/lib/io/bytes_builder.dart#newcode12 sdk/lib/io/bytes_builder.dart:12: * buffer. Note that it's optimized for IO, using ...
6 years, 8 months ago (2014-04-01 09:29:07 UTC) #4
Søren Gjesse
lgtm
6 years, 8 months ago (2014-04-01 10:29:29 UTC) #5
Anders Johnsen
6 years, 8 months ago (2014-04-01 10:56:31 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r34589 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698