Skip to content

An asynchronous zero-fluff binary encoder / decoder

License

Notifications You must be signed in to change notification settings

oscartbeaumont/binario

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

This project is a proof of concept and is not ready for actual use.

Binario

An asynchronous zero-fluff binary encoder / decoder

Why?

This is very similar to bincode however it has been designed from the ground up to work with Tokio's AsyncRead AsyncWrite traits. This allows it to perform better when used with TcpStream's than an equivalent bincode program.

Benchmarking is still in progress but so far I am seeing about a 3 times performance win over bincode when used over a TCP connection. Binario does and will likely will continue to loose on in-memory head to head performance due to the overhead of async.

Usage with Tokio

It is highly recommended that you use Tokio's buffering utilities in conjunction with this crate to greatly improve performance. Refer to BufReader and BufWriter for more information.

About

An asynchronous zero-fluff binary encoder / decoder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages