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

Issue 130913010: Use a list of Uint8List-views instead of a BytesBuilder, to build up websocket messages. (Closed)

Created:
6 years, 10 months ago by Anders Johnsen
Modified:
6 years, 10 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org, Søren Gjesse
Visibility:
Public.

Description

Use a list of Uint8List-views instead of a BytesBuilder, to build up websocket messages. This avoids a lot of copyings, and in the case of only one payload, there are no copies at all. BUG= R=kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=32122

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -13 lines) Patch
M sdk/lib/io/websocket_impl.dart View 6 chunks +35 lines, -13 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
6 years, 10 months ago (2014-01-29 10:50:28 UTC) #1
kasperl
LGTM. https://codereview.chromium.org/130913010/diff/1/sdk/lib/io/websocket_impl.dart File sdk/lib/io/websocket_impl.dart (right): https://codereview.chromium.org/130913010/diff/1/sdk/lib/io/websocket_impl.dart#newcode94 sdk/lib/io/websocket_impl.dart:94: if (_payloads.length == 0) return new Uint8List(0); Do ...
6 years, 10 months ago (2014-01-29 11:10:44 UTC) #2
Anders Johnsen
https://codereview.chromium.org/130913010/diff/1/sdk/lib/io/websocket_impl.dart File sdk/lib/io/websocket_impl.dart (right): https://codereview.chromium.org/130913010/diff/1/sdk/lib/io/websocket_impl.dart#newcode94 sdk/lib/io/websocket_impl.dart:94: if (_payloads.length == 0) return new Uint8List(0); On 2014/01/29 ...
6 years, 10 months ago (2014-01-29 14:23:40 UTC) #3
Anders Johnsen
6 years, 10 months ago (2014-01-29 14:23:51 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r32122 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698