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

Issue 798683007: Improve performance of reading a protobuf buffer (Closed)

Created:
6 years ago by Søren Gjesse
Modified:
5 years, 11 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dart-protobuf.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve performance of reading a protobuf buffer * Avoid the use of two vars for handling the read limit * Avoid always copying the buffer * Improve reading of varint which was high on the profile R=sigmund@google.com BUG= Committed: https://github.com/dart-lang/protobuf/commit/1b22ec4bd717e16e1c5dc0b1e3051ab33c3f7bf1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed code in comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -15 lines) Patch
M lib/src/protobuf/coded_buffer_reader.dart View 1 5 chunks +32 lines, -15 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Søren Gjesse
6 years ago (2014-12-19 08:19:42 UTC) #1
Anders Johnsen
DBC https://chromiumcodereview.appspot.com/798683007/diff/1/lib/src/protobuf/coded_buffer_reader.dart File lib/src/protobuf/coded_buffer_reader.dart (right): https://chromiumcodereview.appspot.com/798683007/diff/1/lib/src/protobuf/coded_buffer_reader.dart#newcode23 lib/src/protobuf/coded_buffer_reader.dart:23: _buffer = buffer,// is Uint8List ? buffer : ...
6 years ago (2014-12-19 08:32:25 UTC) #3
Søren Gjesse
https://chromiumcodereview.appspot.com/798683007/diff/1/lib/src/protobuf/coded_buffer_reader.dart File lib/src/protobuf/coded_buffer_reader.dart (right): https://chromiumcodereview.appspot.com/798683007/diff/1/lib/src/protobuf/coded_buffer_reader.dart#newcode23 lib/src/protobuf/coded_buffer_reader.dart:23: _buffer = buffer,// is Uint8List ? buffer : new ...
6 years ago (2014-12-19 09:05:28 UTC) #4
Siggi Cherem (dart-lang)
lgtm
6 years ago (2014-12-19 17:42:56 UTC) #5
sra1
How much was the performance improvement on dart2js?
6 years ago (2014-12-19 17:53:47 UTC) #7
Søren Gjesse
On 2014/12/19 17:53:47, sra1 wrote: > How much was the performance improvement on dart2js? I ...
5 years, 11 months ago (2015-01-05 13:51:01 UTC) #8
Søren Gjesse
5 years, 11 months ago (2015-01-05 13:52:53 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
1b22ec4bd717e16e1c5dc0b1e3051ab33c3f7bf1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698