AVRO-804 included an optimization to Thrift struct field access that's also applicable to protobuf.
Here's a patch that implements this same optimization for protobuf. Instead of accessing the cache that maps Avro field positions to protobuf field ids once per field the cache is only accessed once per record when reading or writing.
I'll commit this soon.
I committed this.