dropbox / pb-jelly

A protobuf code generation framework for the Rust language developed at Dropbox.
Apache License 2.0
610 stars 25 forks source link

Smallen codegen #158

Closed goffrie closed 6 months ago

goffrie commented 7 months ago

Depends on #157.

This PR implements a series of optimizations to try to reduce the amount of generated code with the aim of speeding up compilation. Altogether this makes our slowest proto crate a bit over 10% faster to compile (~41s to ~35s).

The changes, in separate commits, are: