This feature is protected by a featuregate that is not yet enabled and
only marked as alpha. Preliminary results show > 20% CPU performance
improvement and at least 40% allocations improvement. I still need to
generate UnmarshalProto for AnyValue which should improve even more
results.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
The only non-test change is in the Unmarshal proto but that generates
exactly the same code using the "defaultValue" for the message.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This removes lots of hand written JSON encoding code, and will help when
start using generated proto size/marshal/unmarshal.
This also adds tests for all previously hand written funcs.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>