msgpack.light
2.0.0.5-g2230
See the version list below for details.
dotnet add package msgpack.light --version 2.0.0.5-g2230
NuGet\Install-Package msgpack.light -Version 2.0.0.5-g2230
<PackageReference Include="msgpack.light" Version="2.0.0.5-g2230" />
paket add msgpack.light --version 2.0.0.5-g2230
#r "nuget: msgpack.light, 2.0.0.5-g2230"
// Install msgpack.light as a Cake Addin #addin nuget:?package=msgpack.light&version=2.0.0.5-g2230&prerelease // Install msgpack.light as a Cake Tool #tool nuget:?package=msgpack.light&version=2.0.0.5-g2230&prerelease
MsgPack.Light
MsgPack.Light is a lightweight MsgPack serialization library.
Key features
- Performance
- .Net core compatability
- Extensibility
- Simple usage
Install
Simpliest way to start using ProGaudi.MsgPack.Light is to install it from NuGet.
Usage
Serialization to bytes array:
var bytes = MsgPackSerializer.Serialize(value);
Deserialization:
var value = MsgPackSerializer.Deserialize<string>(bytes);
Your type serialization/deserialization:
If you want to work with your own types, first thing you need - type converter. Example of Beer type converter you can find here. Then you should create create MsgPackContext and register your converter:
var context= new MsgPackContext();
context.RegisterConverter(new BeerConverter());
And then you can serialize:
var bytes = MsgPackSerializer.Serialize(beer, context);
And deserialize:
var beer = MsgPackSerializer.Deserialize<Beer>(bytes, context);
Build
To build MsgPack.Light you have to install dotnet SDK version 1.0.0-preview4-004233
or higher (you can find corresponding build on dotnet/cli project.
After dotnet is installed, run following commands:
git clone https://github.com/progaudi/MsgPack.Light.git
cd MsgPack.Light
dotnet build -c Release -f netstandard1.4 src/msgpack.light/msgpack.light.csproj
dotnet build -c Release -f netcoreapp1.1 tests/msgpack.light.tests/msgpack.light.tests.csproj
dotnet test -c Release --no-build tests/msgpack.light.tests/msgpack.light.tests.csproj
MsgPack.Light should built and all test should be passed.
Performance
- Serialization performance is comparable with msgpack.cli
- Deserialization performance 2-3 times faster
- MsgPack.Light works best if a data reside a memory (_*Array benchmarks).
- Perfoming some IO operations, performance is suboptimal, but comparable with MsgPack.Cli (*_Stream benchmarks).
- More details can be found here.
Credits
- Benchmark data copied from thekvs cpp-serializers project.
- Other benchmarks got from maximn SerializationPerformanceTest_CSharp project.
- Thanks to MessagePack for CLI authors for inspiration.
Roadmap
- Code-generator for field-based converters, we will support array and map modes.
- Possible optimizations with IO handling and asyncing our API.
Build statuses for master branch
Linux and OSX build status (it's not possible to separate build status per OS, so if any OS is failing build status will be failing):
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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. |
.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 is compatible. 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. |
-
.NETFramework 4.6.2
- JetBrains.Annotations (>= 11.0.0)
- System.Collections.Immutable (>= 1.4.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.ValueTuple (>= 4.4.0)
-
.NETStandard 2.0
- JetBrains.Annotations (>= 11.0.0)
- System.Collections.Immutable (>= 1.4.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.ValueTuple (>= 4.4.0)
-
net6.0
- JetBrains.Annotations (>= 11.0.0)
- System.Collections.Immutable (>= 1.4.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.ValueTuple (>= 4.4.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on msgpack.light:
Package | Downloads |
---|---|
progaudi.tarantool
Tarantool low-level client Library |
|
Tarantool.CSharp
Project is renamed. That package will not be updated anymore. Use https://www.nuget.org/packages/progaudi.tarantool/ instead. |
|
Tarantool.DotNet
Tarantool low-level client Library |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.1.1-gc7cb | 515 | 11/19/2023 |
2.0.1 | 2,477 | 11/17/2023 |
2.0.0.7-g8e2b | 403 | 11/19/2023 |
2.0.0.6-g634e | 409 | 11/17/2023 |
2.0.0.5-g2230 | 414 | 11/17/2023 |
2.0.0.4-gfad92 | 393 | 11/17/2023 |
2.0.0.2-ga6f6 | 390 | 11/17/2023 |
2.0.0.1-gb047 | 459 | 10/17/2023 |
2.0.0 | 486 | 10/17/2023 |
1.6.2.31-g7d7e83d | 1,164 | 2/2/2019 |
1.6.2.30-g338aad4 | 1,125 | 1/17/2019 |
1.6.2.28-g38f1ac5 | 1,165 | 1/13/2019 |
1.6.2.25-g0350b6b | 1,153 | 11/20/2018 |
1.6.2.24-gc7f80a8 | 1,140 | 11/19/2018 |
1.6.2.23-gf4ae5ff | 1,148 | 11/19/2018 |
1.6.2.8-g5a4d | 442 | 10/17/2023 |
1.6.2.7-g653f | 423 | 10/17/2023 |
1.6.2.5-g6665 | 452 | 10/17/2023 |
1.6.2.3-g9cac | 445 | 10/17/2023 |
1.6.2.2-g951f | 449 | 10/17/2023 |
1.6.2 | 16,619 | 9/22/2018 |
1.6.1 | 2,520 | 9/21/2018 |
1.6.0.10-gadded5d | 1,179 | 9/21/2018 |
1.6.0.5-g60b7646 | 1,162 | 9/21/2018 |
1.6.0.4-g722b7a5 | 1,183 | 9/21/2018 |
1.6.0.3-g633752d | 1,204 | 9/21/2018 |
1.6.0.1-ga30cb97 | 1,199 | 9/21/2018 |
1.6.0 | 1,327 | 9/21/2018 |
1.5.0.49-gd5f5b37 | 1,206 | 9/21/2018 |
1.5.0.49-g980f0cd | 1,195 | 9/21/2018 |
1.5.0.48-g68c0476 | 1,215 | 9/21/2018 |
1.5.0.47-g2a7db1e | 1,213 | 9/21/2018 |
1.5.0.45-g8a1bdf5 | 1,206 | 9/21/2018 |
1.5.0.44-g36918a1 | 1,188 | 9/21/2018 |
1.5.0 | 10,805 | 1/24/2018 |
1.4.0 | 12,773 | 8/29/2017 |
1.3.0 | 7,999 | 6/30/2017 |
1.2.2 | 1,735 | 5/16/2017 |
1.2.1 | 1,556 | 5/3/2017 |
1.2.0 | 2,664 | 3/20/2017 |
1.1.0 | 3,116 | 12/15/2016 |
1.0.1 | 2,725 | 10/28/2016 |
1.0.0 | 2,020 | 10/21/2016 |
0.5.13 | 1,982 | 10/14/2016 |
0.5.12 | 1,612 | 10/11/2016 |
0.5.11 | 2,880 | 8/2/2016 |
0.5.10 | 1,695 | 7/29/2016 |
0.5.9 | 1,905 | 7/26/2016 |
0.5.8 | 1,633 | 7/8/2016 |
0.5.7 | 1,603 | 7/8/2016 |
0.5.6 | 2,293 | 7/7/2016 |
0.5.5 | 2,048 | 7/3/2016 |
0.5.4 | 1,549 | 6/27/2016 |
0.5.3 | 1,717 | 6/6/2016 |
0.5.2 | 1,604 | 6/2/2016 |
0.5.1 | 1,624 | 5/6/2016 |
0.5.0 | 1,644 | 5/4/2016 |
0.1.0 | 1,652 | 5/2/2016 |
0.0.63 | 1,845 | 4/27/2016 |
0.0.57 | 1,788 | 4/27/2016 |
0.0.50 | 1,708 | 4/27/2016 |
0.0.2 | 1,936 | 4/26/2016 |
0.0.1 | 1,789 | 4/26/2016 |