postcard VS speedy

Compare postcard vs speedy and see what are their differences.

postcard

A no_std + serde compatible message library for Rust (by jamesmunns)

speedy

A fast binary serialization framework (by koute)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
postcard speedy
7 1
708 331
- -
5.9 5.9
12 days ago 3 months ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

postcard

Posts with mentions or reviews of postcard. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-27.

speedy

Posts with mentions or reviews of speedy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-12.
  • Are there any serialization crates that do Varint encoding without Zigzag encoding?
    8 projects | /r/rust | 12 Jan 2023
    I would look at speedy which is, as the name suggests, pretty fast. It encodes varints in a way that's different from LEB128, and is much quicker to both encode and decode. The format they use is at the top of this file -- you can do it just with a couple of shifts and masks, and decoding is similarly fast. Speedy also hard-branches in the code with a switch statement based on how many bytes you need, which in my tests is something like 2x faster than the alternative, despite it being a branch (it's just turns into a lookup table in assembly).

What are some alternatives?

When comparing postcard and speedy you can also consider the following projects:

tinycbor - Concise Binary Object Representation (CBOR) Library

scale-info - Info about SCALE encodable Rust types

karmem - Karmem is a fast binary serialization format, faster than Google Flatbuffers and optimized for TinyGo and WASM.

ssh_format - Data format used to communicate with openssh mux server.

ractor - Rust actor framework

serde - Serialization framework for Rust

json-maker - C library used to code JSON objects in null-terminated strings

pguint - unsigned integer types extension for PostgreSQL

tiny-json - The tiny-json is a versatile and easy to use json parser in C suitable for embedded systems. It is fast, robust and portable.

parity-scale-codec - Lightweight, efficient, binary serialization and deserialization codec

cJSON - Ultralightweight JSON parser in ANSI C

xml-rs - An XML library in Rust