quininer / cbor4ii

CBOR: Concise Binary Object Representation
MIT License
54 stars 5 forks source link

Performance in some cases #28

Open quininer opened 10 months ago

quininer commented 10 months ago

I submitted https://github.com/djkoloski/rust_serialization_benchmark/pull/56 and found that the performance of cbor4ii on github actions is worse than serde_cbor.

I also observed that cbor4ii has a greater slowdown thanserde_cbor when using cranelift backend. (10x)

I suspect this is because cbor4ii relies more on inline than other implementations. This is a case that can be optimized.

quininer commented 10 months ago

Right now we are the fastest CBOR crate for serialization, but deserialization has no advantage over serde_cbor.