Eliminate more type casts when targeting JS (#732)

Explicit type casts (`as`) syntax is expensive when targeting JS.

In #685 we replaced some of the explicit casts with implicit casts.

This PR does the same in a few more places.

AOT compilation is not affected: most benchmark binaries are identical.
`deep_copy` gets a few bytes larger.
3 files changed
tree: 7d48a5858c47a49f2c84bef593f6affd627505a2
  1. .github/
  2. api_benchmark/
  3. benchmarks/
  4. protobuf/
  5. protoc_plugin/
  6. tool/
  7. .gitignore
  8. AUTHORS
  9. LICENSE
  10. mono_repo.yaml
  11. README.md
README.md

CI status

Protobuf support for Dart

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 for Dart.

PackageDescriptionPublished Version
protobufA support library for the generated codepub package
protoc_pluginA Dart back-end for the protoc compilerpub package
api_benchmarkBenchmarking for various API calls
query_benchmarkBenchmark for encoding and decoding of a “real-world” protobuf