You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XXX_unrecognized is the internal field used to implement unknown fields. The current type is a []byte, which occupies 24B on 64-bit systems. However, the vast majority of situations do not have any unknown fields to store, so this is an increase of 24B that is mostly useless.
Consider changing this to be a pointer instead (perhaps *[]byte), to reduce the footprint to 8B.
The text was updated successfully, but these errors were encountered:
@dsnet
sorry if this is a something you have already thought about, I am not familiar with new code base.
There are whole lot of XXX fluff in a current protobuf, maybe bite the bullet and offload all of them into _xxx *ProtoMeta special struct (and add "GetXXX() *..." call). Or export it, but then you can accidentally set it, not sure if this is an intention.
(Background: #856)
XXX_unrecognized
is the internal field used to implement unknown fields. The current type is a[]byte
, which occupies 24B on 64-bit systems. However, the vast majority of situations do not have any unknown fields to store, so this is an increase of 24B that is mostly useless.Consider changing this to be a pointer instead (perhaps
*[]byte
), to reduce the footprint to 8B.The text was updated successfully, but these errors were encountered: