Skip to content

Protobuf performance improvements #6068

Closed Answered by PeterJohnson
ennerf asked this question in Ideas
Discussion options

You must be logged in to vote

Thanks for the suggestion! For the simple use cases like a simple array of fixed size structures, this is why we’ve developed Struct (basically C-style packed structures with a simple description language) as a higher speed and more byte efficient alternative to protobuf.

While going to decomposed parallel arrays would be more storage efficient and decoding performant, it’s much less user-friendly for our dynamic use cases, where we want generic dashboards to be able to blow out data structures as the user would expect to see them.

Your suggested approach might make sense to explore for the PhotonVision project, as they largely are using protobuf just for transport and not really intendin…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ennerf
Comment options

@PeterJohnson
Comment options

@mcm001
Comment options

@ennerf
Comment options

Answer selected by ennerf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants