lune-org / lune

A standalone Luau runtime
https://lune-org.github.io/docs
Mozilla Public License 2.0
295 stars 68 forks source link

Add support for `zstd` Compression Algorithm to `@lune/serde` #202

Open SnorlaxAssist opened 1 month ago

SnorlaxAssist commented 1 month ago

Summary

Zstandard is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios. ...Read more

Benefits

filiptibell commented 1 month ago

I was a bit hesitant on zstd before since there is no pure rust library for it, meaning we need to link another c library, but Roblox already using it in various places is a good argument for Lune also having it. I think the benefits outweigh the costs here.

This should be very straightforward to add, just enabling the zstd feature in async-compression and adding a new match branch, so if any new contributor wants to pick this up as a first issue feel free :)