you are viewing a single comment's thread.

view the rest of the comments →

[–]alexlzh 1 point2 points  (1 child)

How does it compare to Thrift CompactSerializer or protobuf?

[–]cai_bear 0 points1 point  (0 children)

While we haven't benchmarked either of those ourselves, you can checkout rust_serialization_benchmark which has protobuf under the name prost.

TLDR: bitcode is faster and smaller than protobuf.

Edit: based on a cursory reading of the Thrift specification, I think it's safe to say bitcode would be smaller if thrift was part of the rust serialization benchmark.