commit | 44ecd7424fa0a9e023ecac0d894f50926ed111cf | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Mon Jul 28 21:39:47 2025 +0200 |
committer | GitHub <noreply@github.com> | Mon Jul 28 21:39:47 2025 +0200 |
tree | 58465a160171accbe695c54e8cd62c5aef34d273 | |
parent | f7f65d44a78bde0d1f2ae4040bdd79d6429adb3f [diff] |
Sync JSON web decoders (#1028) This syncs the web JSON decoder used internally. The new decoder uses `js_interop` instead of the Dart standard library to improve performance when compiled to JS. ## Benchmarks master, JS: protobuf_from_json_string(RunTimeRaw): 1423.134328358209 us. PR, JS: protobuf_from_json_string(RunTimeRaw): 971 us. Wasm and VM benchmarks don't change as they keep using the old implementation. The new implementation is slower with Wasm as it does more JS interop, so we keep using the old one.
Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
This repository is home to packages related to protobuf support for Dart.
Package | Description | Published Version |
---|---|---|
protobuf | Runtime library for protocol buffers support. | |
protoc_plugin | A protobuf protoc compiler plugin used to generate Dart code. | |
benchmarks | Benchmarks for various protobuf functions. |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.