-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Investigate bitcode
vs bincode
for filesystem
#99
Comments
Recent benchmarks: https://david.kolo.ski/rust_serialization_benchmark/ https://www.reddit.com/r/rust/comments/13hwwhj/bitcode_04_release_binary_serialization_format/ This seems like it would be worth it now. |
Interestingly I ran a test with this on the 3d example and somehow came up with a bigger file:
|
Closing this for now, seems unnecessary to continue exploring this at this point |
bitcode author here, your test on Feb 4 was with an old version of bitcode (presumably 0.4 or 0.5). These old versions didn't compress very well because they serialized bits while compression like zstd operates on bytes. Luckily I have released a new version Using version I replaced gamercade_console/gamercade_core/src/graphics/color.rs Lines 20 to 54 in 31bec15
with |
Thanks for looking into this. Going to re-open the issue as it will be worth it to look into it again in the future! |
Currently, we use
bincode.
bitcode
was recently released which has better compression (size) in exchange for slightly slower speeds. Could be benefecial to switch over if the gains are big enough.The text was updated successfully, but these errors were encountered: