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=

Review URL: https://chromiumcodereview.appspot.com//798683007
1 file changed
tree: e4e624923ea0d4c16a73b0a75264c5a88129e380
  1. lib/
  2. test/
  3. .gitignore
  4. .status
  5. AUTHORS
  6. codereview.settings
  7. CONTRIBUTING.md
  8. LICENSE
  9. PATENTS
  10. pubspec.yaml
  11. README.md
README.md

Protobuf runtime support library

Build Status

This library provides runtime support library for Dart implementation of protobufs.

Typically one do not need to import this library---only libraries generated by protoc plugin import this library directly.

However, if your library or application uses generated protobuf libraries, please, add this library as a dependency.

Hacking

So far to hack on the library the main thing you should be aware of is how to run unittests. The easiest way would be to use DartEditor and run all_tests.dart file which is the whole suite.

If you'd like to run test from command line, please, do not pass proper package root.

Useful references