3 ms·
This is great. AFAIK this is the only protobuf library in Rust that supports zero copy. Maybe this'll help some of the other libraries implement similar feature
by staticassertion 6y ago
This is great. AFAIK this is the only protobuf library in Rust that supports zero copy. Maybe this'll help some of the other libraries implement similar features?
- rapsey 6y agoQuick-protobuf has been around for a while and supports it.
- staticassertion 6y agoThanks, I hadn't seen this. I'm curious about how they compare - it looks like quick-protobuf uses Cow, but I think pb-jelly doesn't?
- rapsey 6y agoJelly uses an external crate called Bytes to achieve it. It has nicer usability compared to Cow I guess.
- lightgreen 6y agorust-protobuf supports zero-copy when using `bytes` feature and reading from `Bytes`.
- staticassertion 6y agoVery cool, TIL.