The Ruff Binary Serializer is designed to optimize your Unity app's performance by replacing the built-in JSON serializer. It achieves this by reducing the amount of data in JSON, which can lead to technical issues, increased crash/anr rates, and longer startup times.
The serializer is easy to use, requiring only a single line of code: Ruff.Save(path, object). No advanced markup is needed, making it simple to integrate into your project.
Example improvements include:
- Minimal read/write time, up to x50
- Less data size, up to x30
- Less memory allocation, in cases x100
The serializer is also designed for further improvements, and its usage rules are the same as JSON, making it easy to replace the built-in serializer.
The Ruff Binary Serializer is compatible with any Unity version and comes with source code provided. It can convert any custom type and combinations, including arrays, lists, dictionaries, integers, unsigned integers, strings, booleans, floats, and bytes.
For code-generated optimizations, simply add the [Ruff] attribute to the root type. Empty strings are decoded as null, and defaults are set to LE, LEB128, and UTF-8.
For more information on specifications, please refer to the documentation.
Optimize Your Unity App with Ruff Binary Serializer - Asset Store





