What's Changed
✨ Features
📦 formatter
- implement MemoryPack-inspired high-performance custom formatter system [5d6be51] by @JasonXuDeveloper
📦 generator
- add multi-dimensional array support [47279ab] by @JasonXuDeveloper
- add new collection type generators and optimize unmanaged types [60d4831] by @JasonXuDeveloper
📦 serialization
- add boxed object support for generic type serialization with restrictions [8fc6476] by @JasonXuDeveloper
🐛 Bug Fixes
🔧 General
- always commit Unity DLL updates to main branch for all releases [dba0eda] by @JasonXuDeveloper
- clean up temporary branch after Unity DLL push [c4aa14c] by @JasonXuDeveloper
- correct release workflow DLL copy path for Nino.Generator [b58708b] by @JasonXuDeveloper
- ensure Unity DLL updates reach main branch for stable releases [fb0edd9] by @JasonXuDeveloper
- ensure temporary branch cleanup even on push failure [454a334] by @JasonXuDeveloper
- restore complete CLAUDE.md with all original instructions [5aa8f43] by @JasonXuDeveloper
📦 ci
- correct DLL copy paths in release workflow [cb7051d] by @JasonXuDeveloper
- move release tag to Unity DLL commit for UPM compatibility [df7b32c] by @JasonXuDeveloper
- prevent canceling previous CI runs on non-code changes [b8e0cdf] by @JasonXuDeveloper
📦 generator
- capture member types from parsed Nino types to include generic field types [6cc5636] by @JasonXuDeveloper
- check type argument accessibility recursively to prevent CS0051 errors [271b99e] by @JasonXuDeveloper
- check type argument accessibility recursively to prevent CS0051 errors [fbaf9d1] by @JasonXuDeveloper
- implement offset-based UPM preview version increments [6aa92f0] by @JasonXuDeveloper
- improve ArraySegment fast path implementation [37e4d59] by @JasonXuDeveloper
- modify emit namespace and improve GetKind correctness [c7c0a29] by @JasonXuDeveloper
- resolve IDE duplicate code issue with comprehensive deduplication [3fa682c] by @JasonXuDeveloper
- restore member type validation checks [8a590ba] by @JasonXuDeveloper
- suppress CS8669 nullable annotation warnings in generated code [335b43e] by @JasonXuDeveloper
📦 serialization
- fix nullable type handling and restore tuple grouping in deserializer [cc675c6] by @JasonXuDeveloper
🔧 Improvements
📦 generator
- add type hierarchy ordering and pre-filtering for built-in type generation [074c2a2] by @JasonXuDeveloper
- consolidate built-in type generators into unified output [975bc7d] by @JasonXuDeveloper
- dramatically simplify deserializer generator with 64% code reduction [7df5751] by @JasonXuDeveloper
- extract built-in type generation framework and implement nullable types [b1348ba] by @JasonXuDeveloper
- migrate KeyValuePair and Tuple to dedicated generators with shared helpers [0dbab00] by @JasonXuDeveloper
- migrate collection types to built-in generator framework with optimized List ref handling [b340785] by @JasonXuDeveloper
- optimize fast path detection and add ArraySegment fast path support [4109053] by @JasonXuDeveloper
- optimize type validation with iterative algorithm and extract nested type discovery [e885ded] by @JasonXuDeveloper
- remove overly strict member type validation [33353db] by @JasonXuDeveloper
- simplify type discovery pipeline and remove redundant code [b3109f1] by @JasonXuDeveloper
📚 Documentation
🔧 General
- merge CLAUDE.md files into unified root configuration [9baae43] by @JasonXuDeveloper
- merge CLAUDE.md files into unified root configuration [b268b2e] by @JasonXuDeveloper
🧪 Testing
📦 serialization
- add comprehensive array shrinking test for ref overload [f935e24] by @JasonXuDeveloper
🏗️ Maintenance
🔧 General
- add Claude Code development environment and tooling [1b149f3] by @JasonXuDeveloper
- add Claude Flow development environment and metrics [7af6abf] by @JasonXuDeveloper
- ignore Claude Flow metrics files and remove from tracking [f5f5478] by @JasonXuDeveloper
- remove remaining Claude Flow metrics files and update docs [a14a045] by @JasonXuDeveloper
- update Claude Flow metrics to latest state [29d5191] by @JasonXuDeveloper
📦 ci
- optimize workflow with path-based change detection [ed6dc3a] by @JasonXuDeveloper
📦 repo
- remove CLAUDE.md from version control [f576d7b] by @JasonXuDeveloper
- remove LLM agent configuration files and exclude from version control [5f27fda] by @JasonXuDeveloper
🔀 Other Changes
📦 other
- Merge branch 'main' of https://github.com/JasonXuDeveloper/Nino [d9d98c2] by @JasonXuDeveloper
- fix: resolve deserialization issue with nested complex types (#157) [45c68b0] by @JasonXuDeveloper
- perf(core): optimize FastMap by removing System.Numerics dependency [aa99377] by @JasonXuDeveloper
- perf(generator): optimize collection deserialization with three-phase ref overload and Array.Resize pattern [c92f070] by @JasonXuDeveloper
- perf(serialization): optimize array ref overloads with Array.Resize and object reuse [ea6c808] by @JasonXuDeveloper
- perf: optimize deserializer to use UnsafeRead for unmanaged types [8505fb6] by @JasonXuDeveloper
👥 Contributors
Full Changelog: https://github.com/JasonXuDeveloper/Nino/compare/v4.0.0-beta.8..v4.0.0-beta.16
⚠️ Pre-release - Use with caution in production
Installation
NuGet:
dotnet add package Nino --version 4.0.0-beta.16
Unity: Preview version available via UPM
📊 Performance Report
Click to expand benchmark results
BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.305
[Host] : .NET 8.0.20 (8.0.2025.41914), X64 RyuJIT AVX2
ShortRun-.NET 9.0 : .NET 9.0.9 (9.0.925.41916), X64 RyuJIT AVX2
Job=ShortRun-.NET 9.0 Runtime=.NET 9.0 Server=True
IterationCount=3 LaunchCount=1 WarmupCount=3
| Method | Mean | Min | Max | Ratio | Payload | Gen0 | Gen1 | Gen2 | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| NinoDeserializeSimpleClass | 500.1575 ns | 497.3493 ns | 504.0671 ns | 1.00 | - | 0.2203 | - | - | 2528 B | 1.00 |
| MemoryPackDeserializeSimpleClass | 676.4142 ns | 674.6447 ns | 679.8789 ns | 1.35 | - | 0.2470 | - | - | 2528 B | 1.00 |
| MessagePackDeserializeSimpleClass | 1,851.3602 ns | 1,847.1383 ns | 1,855.5162 ns | 3.70 | - | 0.3204 | 0.0057 | 0.0038 | 2414 B | 0.95 |
| NinoSerializeSimpleClass | 227.5524 ns | 227.3861 ns | 227.7987 ns | 1.00 | 1.13KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleClass | 534.8046 ns | 534.6975 ns | 534.8693 ns | 2.35 | 1.12KB | - | - | - | - | NA |
| MessagePackSerializeSimpleClass | 1,284.8467 ns | 1,281.8971 ns | 1,286.8236 ns | 5.65 | 1.09KB | - | - | - | - | NA |
| NinoDeserializeSimpleClasses | 50,543.6887 ns | 50,424.8286 ns | 50,644.0218 ns | 1.00 | - | 18.0054 | 5.7983 | - | 253624 B | 1.00 |
| MemoryPackDeserializeSimpleClasses | 65,446.8907 ns | 65,167.5874 ns | 65,881.6748 ns | 1.29 | - | 17.7002 | 5.7373 | - | 253624 B | 1.00 |
| MessagePackDeserializeSimpleClasses | 192,678.8064 ns | 190,998.6882 ns | 194,731.1843 ns | 3.81 | - | 18.3105 | 5.6152 | - | 253624 B | 1.00 |
| NinoSerializeSimpleClasses | 24,360.0001 ns | 24,354.9658 ns | 24,365.1181 ns | 1.00 | 112.5KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleClasses | 53,519.4852 ns | 53,014.6877 ns | 53,979.7378 ns | 2.20 | 112.11KB | - | - | - | - | NA |
| MessagePackSerializeSimpleClasses | 124,520.1361 ns | 124,498.0393 ns | 124,554.4360 ns | 5.11 | 108.6KB | - | - | - | - | NA |
| NinoDeserializeSimpleStruct | 0.4412 ns | 0.3236 ns | 0.6117 ns | 1.07 | - | - | - | - | - | NA |
| MemoryPackDeserializeSimpleStruct | 1.8684 ns | 1.8680 ns | 1.8689 ns | 4.55 | - | - | - | - | - | NA |
| MessagePackDeserializeSimpleStruct | 70.5218 ns | 70.4493 ns | 70.5996 ns | 171.60 | - | - | - | - | - | NA |
| NinoSerializeSimpleStruct | 6.0525 ns | 6.0417 ns | 6.0588 ns | 1.00 | 16B | - | - | - | - | NA |
| MemoryPackSerializeSimpleStruct | 7.4896 ns | 7.4446 ns | 7.5773 ns | 1.24 | 16B | - | - | - | - | NA |
| MessagePackSerializeSimpleStruct | 87.5632 ns | 87.5409 ns | 87.5982 ns | 14.47 | 16B | - | - | - | - | NA |
| NinoDeserializeSimpleStructs | 106.2012 ns | 105.6768 ns | 106.8693 ns | 1.00 | - | 0.1624 | - | - | 1624 B | 1.00 |
| MemoryPackDeserializeSimpleStructs | 126.4488 ns | 125.5711 ns | 126.8963 ns | 1.19 | - | 0.1624 | - | - | 1624 B | 1.00 |
| MessagePackDeserializeSimpleStructs | 3,823.8173 ns | 3,809.8319 ns | 3,843.4308 ns | 36.01 | - | 0.1907 | 0.0076 | 0.0076 | - | 0.00 |
| NinoSerializeSimpleStructs | 29.0518 ns | 29.0128 ns | 29.0888 ns | 1.00 | 1.57KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleStructs | 50.2722 ns | 50.2678 ns | 50.2745 ns | 1.73 | 1.57KB | - | - | - | - | NA |
| MessagePackSerializeSimpleStructs | 4,432.8620 ns | 4,424.6870 ns | 4,439.4806 ns | 152.59 | 1.57KB | - | - | - | - | NA |
| NinoDeserializeVectors | 123,340.8761 ns | 121,879.0630 ns | 124,804.2073 ns | 1.00 | - | 17.5781 | 17.5781 | 17.5781 | 160034 B | 1.00 |
| MemoryPackDeserializeVectors | 123,363.7296 ns | 118,962.6139 ns | 129,260.4401 ns | 1.00 | - | 13.4277 | 13.4277 | 13.4277 | 160026 B | 1.00 |
| MessagePackDeserializeVectors | 348,661.1348 ns | 342,250.8088 ns | 352,878.3914 ns | 2.83 | - | 16.6016 | 16.6016 | 16.6016 | 160033 B | 1.00 |
| NinoSerializeVectors | 3,696.4276 ns | 3,674.7597 ns | 3,737.6493 ns | 1.00 | 156.25KB | - | - | - | - | NA |
| MemoryPackSerializeVectors | 6,182.4216 ns | 6,115.0792 ns | 6,216.7589 ns | 1.67 | 156.25KB | - | - | - | - | NA |
| MessagePackSerializeVectors | 309,749.0254 ns | 308,841.5972 ns | 310,494.8174 ns | 83.80 | 205.08KB | - | - | - | - | NA |
Benchmark generated automatically on 2025-10-05 11:34:47 UTC