pguint
unsigned integer types extension for PostgreSQL (by petere)
speedy
A fast binary serialization framework (by koute)
pguint | speedy | |
---|---|---|
3 | 1 | |
261 | 331 | |
- | - | |
2.9 | 5.9 | |
5 days ago | 3 months ago | |
Python | Rust | |
GNU General Public License v3.0 or later | 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.
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.
pguint
Posts with mentions or reviews of pguint.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-12.
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?
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 pguint and speedy you can also consider the following projects:
scale-info - Info about SCALE encodable Rust types
postcard - A no_std + serde compatible message library for Rust
ssh_format - Data format used to communicate with openssh mux server.
serde - Serialization framework for Rust
parity-scale-codec - Lightweight, efficient, binary serialization and deserialization codec