What's Changed
✨ Features
📦 formatter
- implement MemoryPack-inspired high-performance custom formatter system [5d6be51] by @JasonXuDeveloper
📦 generator
- add ConcurrentQueue and ConcurrentStack support [a9cddb4] by @JasonXuDeveloper
- add multi-dimensional array support [47279ab] by @JasonXuDeveloper
- add new collection type generators and optimize unmanaged types [60d4831] by @JasonXuDeveloper
- support NinoTypes from referenced assemblies [a2591b9] 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
- ensure all NinoType members use CachedDeserializer [ecca399] 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
- add DeepWiki badge to README [870def1] by @JasonXuDeveloper
- 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(generator): skip code generation when Nino.Core is not used [21006f3] 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.18
⚠️ Pre-release - Use with caution in production
Installation
NuGet:
dotnet add package Nino --version 4.0.0-beta.18
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.2738 ns | 495.1481 ns | 509.0906 ns | 1.00 | - | 0.2165 | 0.0010 | - | 2528 B | 1.00 |
| MemoryPackDeserializeSimpleClass | 686.7139 ns | 680.5680 ns | 690.4080 ns | 1.37 | - | 0.2451 | - | - | 2528 B | 1.00 |
| MessagePackDeserializeSimpleClass | 1,855.4874 ns | 1,846.9353 ns | 1,863.0417 ns | 3.71 | - | 0.3319 | 0.0019 | - | 2528 B | 1.00 |
| NinoSerializeSimpleClass | 227.2077 ns | 227.0855 ns | 227.3679 ns | 1.00 | 1.13KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleClass | 550.0490 ns | 548.9472 ns | 551.8458 ns | 2.42 | 1.12KB | - | - | - | - | NA |
| MessagePackSerializeSimpleClass | 1,286.8097 ns | 1,286.3983 ns | 1,287.3911 ns | 5.66 | 1.09KB | - | - | - | - | NA |
| NinoDeserializeSimpleClasses | 51,878.0308 ns | 51,585.7233 ns | 52,218.6134 ns | 1.00 | - | 18.0054 | 5.6763 | - | 253624 B | 1.00 |
| MemoryPackDeserializeSimpleClasses | 67,296.6256 ns | 67,046.6999 ns | 67,759.5281 ns | 1.30 | - | 17.7002 | 5.4932 | - | 253624 B | 1.00 |
| MessagePackDeserializeSimpleClasses | 197,663.3551 ns | 197,181.8916 ns | 198,429.8477 ns | 3.81 | - | 18.3105 | 5.3711 | - | 253624 B | 1.00 |
| NinoSerializeSimpleClasses | 25,312.1493 ns | 25,235.2908 ns | 25,397.1615 ns | 1.00 | 112.5KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleClasses | 53,316.4023 ns | 52,570.4410 ns | 53,830.6208 ns | 2.11 | 112.11KB | - | - | - | - | NA |
| MessagePackSerializeSimpleClasses | 121,314.4433 ns | 121,297.1538 ns | 121,348.3750 ns | 4.79 | 108.59KB | - | - | - | - | NA |
| NinoDeserializeSimpleStruct | 0.3276 ns | 0.3248 ns | 0.3292 ns | 1.00 | - | - | - | - | - | NA |
| MemoryPackDeserializeSimpleStruct | 1.8026 ns | 1.7781 ns | 1.8509 ns | 5.50 | - | - | - | - | - | NA |
| MessagePackDeserializeSimpleStruct | 71.0450 ns | 70.9046 ns | 71.2197 ns | 216.86 | - | - | - | - | - | NA |
| NinoSerializeSimpleStruct | 6.0410 ns | 6.0289 ns | 6.0534 ns | 1.00 | 16B | - | - | - | - | NA |
| MemoryPackSerializeSimpleStruct | 7.3446 ns | 7.3418 ns | 7.3498 ns | 1.22 | 16B | - | - | - | - | NA |
| MessagePackSerializeSimpleStruct | 86.7372 ns | 86.6514 ns | 86.8140 ns | 14.36 | 16B | - | - | - | - | NA |
| NinoDeserializeSimpleStructs | 105.5123 ns | 105.3521 ns | 105.7878 ns | 1.00 | - | 0.1624 | - | - | 1624 B | 1.00 |
| MemoryPackDeserializeSimpleStructs | 125.5012 ns | 125.1091 ns | 126.0775 ns | 1.19 | - | 0.1624 | - | - | 1624 B | 1.00 |
| MessagePackDeserializeSimpleStructs | 3,852.7067 ns | 3,833.3802 ns | 3,862.8058 ns | 36.51 | - | 0.2136 | - | - | 1624 B | 1.00 |
| NinoSerializeSimpleStructs | 29.0424 ns | 29.0111 ns | 29.0688 ns | 1.00 | 1.57KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleStructs | 51.4746 ns | 51.4430 ns | 51.5269 ns | 1.77 | 1.57KB | - | - | - | - | NA |
| MessagePackSerializeSimpleStructs | 4,053.3660 ns | 4,048.2763 ns | 4,058.5576 ns | 139.57 | 1.57KB | - | - | - | - | NA |
| NinoDeserializeVectors | 125,211.3268 ns | 123,239.4911 ns | 126,456.1860 ns | 1.00 | - | 14.6484 | 14.6484 | 14.6484 | 160029 B | 1.00 |
| MemoryPackDeserializeVectors | 126,978.2037 ns | 124,761.0846 ns | 130,116.2406 ns | 1.01 | - | 17.8223 | 17.8223 | 17.8223 | 160035 B | 1.00 |
| MessagePackDeserializeVectors | 357,165.9862 ns | 354,306.5405 ns | 361,188.3081 ns | 2.85 | - | 23.9258 | 23.9258 | 23.9258 | - | 0.00 |
| NinoSerializeVectors | 3,807.8449 ns | 3,703.9843 ns | 3,979.4307 ns | 1.00 | 156.25KB | - | - | - | - | NA |
| MemoryPackSerializeVectors | 5,527.1676 ns | 5,520.8154 ns | 5,533.1718 ns | 1.45 | 156.25KB | - | - | - | - | NA |
| MessagePackSerializeVectors | 314,800.2567 ns | 314,366.3911 ns | 315,148.7729 ns | 82.75 | 205.08KB | - | - | - | - | NA |
Benchmark generated automatically on 2025-10-05 12:53:09 UTC