Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
serbrech
· 4y ago · 0 comments
The partial decoding is also interesting for another case, I think: polymorphism. The OneOf implementation in go protobuf is ugly, but this trick could make it bareable. I'll have to explore further :)
Comments
[–]
tignaj
4y ago
Here is a OneOf Go implementation I wrote that hopefully is less ugly and is significantly faster:
https://github.com/splunk/exp-lazyproto#oneof-fields