Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bilrost #72

Merged
merged 2 commits into from
Apr 7, 2024
Merged

add bilrost #72

merged 2 commits into from
Apr 7, 2024

Conversation

mumbleskates
Copy link
Contributor

@mumbleskates mumbleskates commented Apr 7, 2024

This adds bilrost, a little thing i've been working on.

The bilrost library supports encoding its messages both forward and backward. Backwards encoding is faster, but for obvious reasons doesn't support appending to existing data. both are included in benchmarks for comparison; hopefully this isn't too many annoying variations. It's possible we should remove at least some of these, like "populate-and-prepend," which aren't really informative on their own.

The encoding is a fork of protobuf, and the library is a fork of prost. Performance is largely similar but usually superior, in large part because i spent a couple hours profiling with rust_serialization_benchmark and restructuring & sprinkling #[inline] annotations where needed, and (in the "prepend" case) because i took the time to implement a novel encoding approach.

@mumbleskates mumbleskates mentioned this pull request Apr 7, 2024
@djkoloski djkoloski merged commit 57a77a7 into djkoloski:master Apr 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants