Nino.Serialization
2.0.0
See the version list below for details.
dotnet add package Nino.Serialization --version 2.0.0
NuGet\Install-Package Nino.Serialization -Version 2.0.0
<PackageReference Include="Nino.Serialization" Version="2.0.0" />
<PackageVersion Include="Nino.Serialization" Version="2.0.0" />
<PackageReference Include="Nino.Serialization" />
paket add Nino.Serialization --version 2.0.0
#r "nuget: Nino.Serialization, 2.0.0"
#:package Nino.Serialization@2.0.0
#addin nuget:?package=Nino.Serialization&version=2.0.0
#tool nuget:?package=Nino.Serialization&version=2.0.0
Nino
Definite useful and high performance serialisation library for C# projects, especially for Unity.
实用的高性能C#序列化库,尤其在Unity平台能带来令人难以置信的效益。
功能列表
Protobuf-net/MsgPack/BinaryFormatter/Bson/JSON等序列化库的平替方案,优势是更小体积,更高性能,支持多线程,支持多态
注意,该模块的序列化数据,仅支持在C#平台使用该库进行序列化和反序列化,无法跨语言使用
Nino.Serialization v2.0.0与所有1.x版本都不兼容,详细请查看使用教程
支持全部非托管类型(int/float/datetime/vector/etc)
支持任意Nullable类型
支持任意ICollection类型(list/dictonary/hashset/etc)
支持任意Span类型
支持自定义Nino序列化类型
支持嵌套上述类型(dictionary<int, list<自定义nino类型[]>>)
支持多态
支持数据校验
性能高,GC低!
测试案例
Test1 Nino VS Protobuf-net 序列化
Test2 Nino VS BinaryFormatter 序列化
Test3 Nino VS Protobuf-net 反序列化
Test4 Nino VS BinaryFormatter 反序列化
Test5 Nino VS MongoDB.Bson 序列化以及反序列化
Test6 Nino VS MsgPack 序列化以及反序列化
Test7 自定义Nino序列化反序列化委托
Test8 自动收集全部字段进行序列化/反序列化(无需给单个字段或属性打标签)
Test9 基础类型序列化反序列化
Test10 复杂结构类型序列化反序列化
Test11 ILRuntime测试(需要搭配使用教程启用ILRuntime)
真机测试 可以打IL2CPP或Mono包进行测试(对比了Nino Reflection/Code Gen与Protobuf-net/BinaryFormatter/Bson/MsgPack Code Gen的序列化性能、序列化体积、反序列化性能)
Protobuf-net与Bson在IL2CPP下暂不支持字典序列化
目录结构
- Docs,文档
- src,Nino源码
- Nino_Unity,Nino Unity 2021及以上版本的工程,包含源码和测试代码(暂未发布v2.0.0 unity版本)
- Performance,性能报告
在Unity平台使用
暂未发布Unity版本,预计2024年8月推出
在非Unity平台使用
使用NuGet
NuGet里搜
Nino.SerializationPM> Install-Package Nino.Serialization -Version 2.0.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.3.0)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.3.0)
- Nino.Core (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nino.Serialization:
| Package | Downloads |
|---|---|
|
Nino
High performance and low size binary serialization solution, especially for Unity. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0-beta.43 | 374 | 11/19/2025 |
| 4.0.0-beta.42 | 220 | 11/14/2025 |
| 4.0.0-beta.40 | 161 | 11/4/2025 |
| 4.0.0-beta.38 | 157 | 10/29/2025 |
| 4.0.0-beta.37 | 144 | 10/28/2025 |
| 4.0.0-beta.36 | 70 | 10/25/2025 |
| 4.0.0-beta.35 | 220 | 10/15/2025 |
| 4.0.0-beta.34 | 144 | 10/14/2025 |
| 4.0.0-beta.33 | 79 | 10/12/2025 |
| 4.0.0-beta.32 | 81 | 10/11/2025 |
| 4.0.0-beta.31 | 74 | 10/11/2025 |
| 4.0.0-beta.30 | 75 | 10/11/2025 |
| 4.0.0-beta.29 | 79 | 10/11/2025 |
| 4.0.0-beta.28 | 60 | 10/11/2025 |
| 4.0.0-beta.27 | 114 | 10/10/2025 |
| 4.0.0-beta.26 | 119 | 10/10/2025 |
| 4.0.0-beta.25 | 137 | 10/9/2025 |
| 4.0.0-beta.24 | 140 | 10/6/2025 |
| 4.0.0-beta.23 | 141 | 10/6/2025 |
| 4.0.0-beta.22 | 133 | 10/6/2025 |
| 4.0.0-beta.20 | 145 | 10/6/2025 |
| 4.0.0-beta.19 | 136 | 10/5/2025 |
| 4.0.0-beta.18 | 126 | 10/5/2025 |
| 4.0.0-beta.17 | 127 | 10/5/2025 |
| 4.0.0-beta.16 | 134 | 10/5/2025 |
| 4.0.0-beta.15 | 158 | 8/18/2025 |
| 4.0.0-beta.14 | 187 | 8/16/2025 |
| 4.0.0-beta.13 | 67 | 8/16/2025 |
| 4.0.0-beta.11 | 143 | 8/14/2025 |
| 4.0.0-beta.10 | 277 | 8/6/2025 |
| 4.0.0-beta.8 | 220 | 8/5/2025 |
| 4.0.0-beta.6 | 216 | 8/5/2025 |
| 4.0.0-beta.5 | 223 | 8/5/2025 |
| 4.0.0-beta.4 | 207 | 8/4/2025 |
| 4.0.0-beta.2 | 74 | 8/3/2025 |
| 4.0.0-beta.1 | 39 | 8/2/2025 |
| 4.0.0-alpha.19 | 41 | 8/2/2025 |
| 4.0.0-alpha.18 | 47 | 8/2/2025 |
| 4.0.0-alpha.17 | 42 | 8/2/2025 |
| 4.0.0-alpha.16 | 45 | 8/2/2025 |
| 4.0.0-alpha.14 | 51 | 8/2/2025 |
| 4.0.0-alpha.13 | 43 | 8/2/2025 |
| 4.0.0-alpha.12 | 44 | 8/2/2025 |
| 4.0.0-alpha.11 | 39 | 8/2/2025 |
| 4.0.0-alpha.10 | 43 | 8/2/2025 |
| 4.0.0-alpha.8 | 44 | 8/2/2025 |
| 4.0.0-alpha.7 | 44 | 8/2/2025 |
| 4.0.0-alpha.6 | 41 | 8/2/2025 |
| 3.9.17 | 238 | 7/30/2025 |
| 3.9.16 | 183 | 7/30/2025 |
| 3.9.15 | 185 | 7/29/2025 |
| 3.9.14 | 197 | 7/28/2025 |
| 3.9.13 | 191 | 7/28/2025 |
| 3.9.12 | 195 | 7/27/2025 |
| 3.9.11 | 175 | 7/27/2025 |
| 3.9.10 | 176 | 7/27/2025 |
| 3.9.9 | 180 | 7/27/2025 |
| 3.9.8 | 279 | 7/26/2025 |
| 3.9.7 | 539 | 7/24/2025 |
| 3.9.6 | 552 | 7/24/2025 |
| 3.9.5 | 627 | 7/23/2025 |
| 3.9.4 | 629 | 7/23/2025 |
| 3.9.3 | 606 | 7/23/2025 |
| 3.9.2 | 624 | 7/22/2025 |
| 3.9.1 | 627 | 7/22/2025 |
| 3.9.0 | 591 | 7/21/2025 |
| 3.3.13 | 355 | 6/3/2025 |
| 3.3.12 | 243 | 6/3/2025 |
| 3.3.11 | 244 | 6/3/2025 |
| 3.3.10 | 244 | 6/2/2025 |
| 3.3.9 | 231 | 5/23/2025 |
| 3.3.8 | 237 | 4/12/2025 |
| 3.3.7 | 305 | 4/7/2025 |
| 3.3.6 | 201 | 4/5/2025 |
| 3.3.5 | 581 | 3/26/2025 |
| 3.3.4 | 593 | 3/26/2025 |
| 3.3.3 | 589 | 3/26/2025 |
| 3.3.2 | 273 | 3/21/2025 |
| 3.3.1 | 220 | 3/20/2025 |
| 3.3.0 | 307 | 3/9/2025 |
| 3.2.13 | 303 | 3/9/2025 |
| 3.2.12 | 288 | 3/9/2025 |
| 3.2.11 | 259 | 3/9/2025 |
| 3.2.10 | 265 | 3/9/2025 |
| 3.2.9 | 391 | 3/5/2025 |
| 3.2.8 | 338 | 3/5/2025 |
| 3.2.7 | 321 | 3/4/2025 |
| 3.2.6 | 316 | 3/4/2025 |
| 3.2.5 | 266 | 3/3/2025 |
| 3.2.4 | 267 | 3/3/2025 |
| 3.2.3 | 220 | 2/25/2025 |
| 3.2.2 | 220 | 2/25/2025 |
| 3.2.1 | 230 | 2/24/2025 |
| 3.2.0 | 226 | 2/22/2025 |
| 3.1.7 | 226 | 2/21/2025 |
| 3.1.6 | 211 | 2/20/2025 |
| 3.1.5 | 231 | 2/20/2025 |
| 3.1.4 | 274 | 2/18/2025 |
| 3.1.3 | 227 | 2/18/2025 |
| 3.1.2 | 207 | 2/15/2025 |
| 3.1.1 | 250 | 2/3/2025 |
| 3.1.0 | 225 | 1/19/2025 |
| 3.0.9 | 209 | 1/19/2025 |
| 3.0.8 | 214 | 1/13/2025 |
| 3.0.7 | 244 | 1/5/2025 |
| 3.0.6 | 221 | 1/5/2025 |
| 3.0.5 | 246 | 11/17/2024 |
| 3.0.4 | 244 | 11/16/2024 |
| 3.0.3 | 245 | 11/15/2024 |
| 3.0.2 | 210 | 11/15/2024 |
| 3.0.1 | 238 | 11/13/2024 |
| 3.0.0 | 244 | 11/12/2024 |
| 2.2.1 | 240 | 11/11/2024 |
| 2.2.0 | 242 | 11/11/2024 |
| 2.1.9 | 267 | 11/11/2024 |
| 2.1.8 | 240 | 11/10/2024 |
| 2.1.7 | 230 | 11/9/2024 |
| 2.1.6 | 233 | 11/7/2024 |
| 2.1.5 | 235 | 11/2/2024 |
| 2.1.4 | 233 | 11/1/2024 |
| 2.1.3 | 214 | 10/31/2024 |
| 2.1.2 | 232 | 10/28/2024 |
| 2.1.1 | 220 | 10/28/2024 |
| 2.1.0 | 252 | 10/27/2024 |
| 2.0.9 | 221 | 10/21/2024 |
| 2.0.8 | 268 | 9/17/2024 |
| 2.0.7 | 247 | 9/16/2024 |
| 2.0.6 | 242 | 9/15/2024 |
| 2.0.5 | 236 | 7/24/2024 |
| 2.0.4 | 228 | 7/18/2024 |
| 2.0.3 | 227 | 7/8/2024 |
| 2.0.2 | 221 | 7/8/2024 |
| 2.0.1 | 264 | 7/3/2024 |
| 2.0.0.2 | 332 | 7/2/2024 |
| 2.0.0.1 | 367 | 7/2/2024 |
| 2.0.0 | 190 | 7/2/2024 |
| 2.0.0-official | 256 | 7/2/2024 |
| 1.2.2 | 356 | 10/18/2023 |
| 1.2.1 | 391 | 7/12/2023 |
| 1.2.0 | 211 | 7/11/2023 |
| 1.1.2.1 | 401 | 2/10/2023 |
| 1.1.2 | 385 | 2/9/2023 |
| 1.1.1 | 367 | 2/7/2023 |
| 1.1.0 | 538 | 1/21/2023 |
| 1.0.21.2 | 390 | 1/7/2023 |
| 1.0.21 | 417 | 1/7/2023 |
| 1.0.20 | 417 | 12/11/2022 |
| 1.0.19.2 | 497 | 10/30/2022 |
| 1.0.19 | 468 | 10/30/2022 |
| 1.0.18 | 513 | 10/24/2022 |
| 1.0.17 | 499 | 10/5/2022 |
| 1.0.16 | 490 | 8/15/2022 |
| 1.0.15 | 540 | 8/11/2022 |
| 1.0.14 | 555 | 8/7/2022 |
| 1.0.13 | 558 | 7/29/2022 |
| 1.0.12 | 540 | 7/27/2022 |
| 1.0.11 | 552 | 7/24/2022 |
| 1.0.10 | 565 | 7/20/2022 |
| 1.0.9 | 549 | 7/9/2022 |
| 1.0.8 | 536 | 7/4/2022 |
| 1.0.7 | 581 | 7/3/2022 |
| 1.0.6 | 562 | 7/2/2022 |
| 1.0.5 | 567 | 7/1/2022 |
| 1.0.4 | 581 | 7/1/2022 |
| 1.0.3 | 536 | 6/30/2022 |
| 1.0.2 | 538 | 6/30/2022 |
| 1.0.1 | 553 | 6/30/2022 |
| 1.0.0 | 545 | 6/30/2022 |
Nino.Serialization v2.0.0
- [Optimisation] More efficient code generated via Source Generator
- [Feature] Polymorphism Solution for Collections Serialization