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
- expose NinoBuiltInTypesRegistration as public [b1288f2] 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
- use CustomDeserializer instead of CustomSerializer for deserializer prefix [52f85cd] by @JasonXuDeveloper
- use tempDict for ReadOnlyDictionary with unmanaged KVP [6d20a9f] by @JasonXuDeveloper
📦 serialization
- fix nullable type handling and restore tuple grouping in deserializer [cc675c6] by @JasonXuDeveloper
⚡ Performance
🔧 General
- optimize deserializer to use UnsafeRead for unmanaged types [8505fb6] by @JasonXuDeveloper
📦 core
- implement lock-free type registration with CAS [c7188b8] by @JasonXuDeveloper
- optimize FastMap by removing System.Numerics dependency [aa99377] by @JasonXuDeveloper
📦 deserializer
- optimize CachedDeserializer with direct typeId lookup [27159dc] by @JasonXuDeveloper
📦 generator
- move AggressiveInlining from NinoType impls to built-in types [f5e0d6c] by @JasonXuDeveloper
- optimize collection deserialization with three-phase ref overload and Array.Resize pattern [c92f070] by @JasonXuDeveloper
- skip code generation when Nino.Core is not used [21006f3] by @JasonXuDeveloper
📦 serialization
- optimize array ref overloads with Array.Resize and object reuse [ea6c808] by @JasonXuDeveloper
📦 serializer
- add inline caching for polymorphic serialization/deserialization [c538842] 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
- use GetKind pattern and NinoTuple for grouped deserialization [451acf6] 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
- ci: run benchmarks on PRs and post results as comments [2873746] by @JasonXuDeveloper
- fix: resolve deserialization issue with nested complex types (#157) [45c68b0] by @JasonXuDeveloper
👥 Contributors
Full Changelog: https://github.com/JasonXuDeveloper/Nino/compare/v4.0.0-beta.8..v4.0.0-beta.24
⚠️ Pre-release - Use with caution in production
Installation
NuGet:
dotnet add package Nino --version 4.0.0-beta.24
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 | 506.6084 ns | 503.8204 ns | 511.6155 ns | 1.00 | - | 0.2251 | - | - | 2528 B | 1.00 |
| MemoryPackDeserializeSimpleClass | 707.7920 ns | 688.6888 ns | 732.9426 ns | 1.40 | - | 0.2460 | - | - | 2528 B | 1.00 |
| MessagePackDeserializeSimpleClass | 1,897.3587 ns | 1,881.8616 ns | 1,913.2026 ns | 3.75 | - | 0.3185 | 0.0057 | 0.0038 | 2403 B | 0.95 |
| NinoSerializeSimpleClass | 222.4569 ns | 222.2400 ns | 222.6031 ns | 1.00 | 1.13KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleClass | 590.8993 ns | 587.9586 ns | 595.8639 ns | 2.66 | 1.12KB | - | - | - | - | NA |
| MessagePackSerializeSimpleClass | 1,224.1584 ns | 1,222.5204 ns | 1,227.2075 ns | 5.50 | 1.09KB | - | - | - | - | NA |
| NinoDeserializeSimpleClasses | 54,329.0220 ns | 53,922.4091 ns | 54,556.8040 ns | 1.00 | - | 17.8223 | 5.6152 | - | 253624 B | 1.00 |
| MemoryPackDeserializeSimpleClasses | 69,266.2563 ns | 68,764.1632 ns | 69,990.4043 ns | 1.27 | - | 17.7002 | 5.7373 | - | 253624 B | 1.00 |
| MessagePackDeserializeSimpleClasses | 193,204.7393 ns | 192,425.2681 ns | 194,121.2632 ns | 3.56 | - | 18.3105 | 5.3711 | - | 253624 B | 1.00 |
| NinoSerializeSimpleClasses | 23,308.7751 ns | 23,282.1030 ns | 23,361.1307 ns | 1.00 | 112.5KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleClasses | 52,108.8943 ns | 52,081.2484 ns | 52,155.5993 ns | 2.24 | 112.11KB | - | - | - | - | NA |
| MessagePackSerializeSimpleClasses | 122,795.3160 ns | 122,655.4849 ns | 122,916.8336 ns | 5.27 | 108.59KB | - | - | - | - | NA |
| NinoDeserializeSimpleStruct | 0.3524 ns | 0.3320 ns | 0.3765 ns | 1.00 | - | - | - | - | - | NA |
| MemoryPackDeserializeSimpleStruct | 1.8687 ns | 1.8671 ns | 1.8695 ns | 5.32 | - | - | - | - | - | NA |
| MessagePackDeserializeSimpleStruct | 70.1382 ns | 70.0497 ns | 70.2125 ns | 199.54 | - | - | - | - | - | NA |
| NinoSerializeSimpleStruct | 6.1262 ns | 6.0896 ns | 6.1822 ns | 1.00 | 16B | - | - | - | - | NA |
| MemoryPackSerializeSimpleStruct | 7.3655 ns | 7.3575 ns | 7.3762 ns | 1.20 | 16B | - | - | - | - | NA |
| MessagePackSerializeSimpleStruct | 86.8650 ns | 86.7592 ns | 87.0015 ns | 14.18 | 16B | - | - | - | - | NA |
| NinoDeserializeSimpleStructs | 117.8409 ns | 116.7767 ns | 118.5252 ns | 1.00 | - | 0.1624 | - | - | 1624 B | 1.00 |
| MemoryPackDeserializeSimpleStructs | 140.4063 ns | 137.4740 ns | 145.5870 ns | 1.19 | - | 0.1624 | - | - | 1624 B | 1.00 |
| MessagePackDeserializeSimpleStructs | 4,068.8066 ns | 4,032.8207 ns | 4,090.4210 ns | 34.53 | - | 0.2060 | - | - | 1624 B | 1.00 |
| NinoSerializeSimpleStructs | 32.1048 ns | 32.0690 ns | 32.1760 ns | 1.00 | 1.57KB | - | - | - | - | NA |
| MemoryPackSerializeSimpleStructs | 49.0857 ns | 49.0532 ns | 49.1054 ns | 1.53 | 1.57KB | - | - | - | - | NA |
| MessagePackSerializeSimpleStructs | 4,192.4776 ns | 4,189.4462 ns | 4,196.9561 ns | 130.59 | 1.57KB | - | - | - | - | NA |
| NinoDeserializeVectors | 133,940.4566 ns | 129,351.1770 ns | 137,104.4214 ns | 1.00 | - | 16.1133 | 16.1133 | 16.1133 | 160031 B | 1.00 |
| MemoryPackDeserializeVectors | 127,166.2655 ns | 120,615.8567 ns | 130,811.6934 ns | 0.95 | - | 15.6250 | 15.6250 | 15.6250 | 160031 B | 1.00 |
| MessagePackDeserializeVectors | 363,741.3390 ns | 349,994.3579 ns | 373,217.5220 ns | 2.72 | - | 20.0195 | 20.0195 | 20.0195 | - | 0.00 |
| NinoSerializeVectors | 3,682.4831 ns | 3,633.4898 ns | 3,748.1461 ns | 1.00 | 156.25KB | - | - | - | - | NA |
| MemoryPackSerializeVectors | 5,503.8665 ns | 5,502.9789 ns | 5,505.0784 ns | 1.49 | 156.25KB | - | - | - | - | NA |
| MessagePackSerializeVectors | 319,629.3467 ns | 319,526.8628 ns | 319,824.4277 ns | 86.81 | 205.08KB | - | - | - | - | NA |
Benchmark generated automatically on 2025-10-06 13:24:57 UTC