some optimizations in src/google/protobuf/descriptor.cc