Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
staticassertion
· 6y ago · 0 comments
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?
Comments
[–]
lightgreen
6y ago
rust-protobuf supports zero-copy when using `bytes` feature and reading from `Bytes`.
[–]
staticassertion
OP
6y ago
Very cool, TIL.
[–]
rapsey
6y ago
Quick-protobuf has been around for a while and supports it.
[–]
staticassertion
OP
6y ago
Thanks, 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 ago
Jelly uses an external crate called Bytes to achieve it. It has nicer usability compared to Cow I guess.