msgpack.light 2.0.1

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package msgpack.light --version 2.0.1
NuGet\Install-Package msgpack.light -Version 2.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="msgpack.light" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add msgpack.light --version 2.0.1
#r "nuget: msgpack.light, 2.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install msgpack.light as a Cake Addin
#addin nuget:?package=msgpack.light&version=2.0.1

// Install msgpack.light as a Cake Tool
#tool nuget:?package=msgpack.light&version=2.0.1

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

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):

Linux and OSX build status

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 465 11/19/2023
2.0.1 1,737 11/17/2023
2.0.0.7-g8e2b 366 11/19/2023
2.0.0.6-g634e 350 11/17/2023
2.0.0.5-g2230 371 11/17/2023
2.0.0.4-gfad92 353 11/17/2023
2.0.0.2-ga6f6 341 11/17/2023
2.0.0.1-gb047 415 10/17/2023
2.0.0 437 10/17/2023
1.6.2.31-g7d7e83d 1,124 2/2/2019
1.6.2.30-g338aad4 1,076 1/17/2019
1.6.2.28-g38f1ac5 1,122 1/13/2019
1.6.2.25-g0350b6b 1,108 11/20/2018
1.6.2.24-gc7f80a8 1,081 11/19/2018
1.6.2.23-gf4ae5ff 1,103 11/19/2018
1.6.2.8-g5a4d 394 10/17/2023
1.6.2.7-g653f 397 10/17/2023
1.6.2.5-g6665 407 10/17/2023
1.6.2.3-g9cac 401 10/17/2023
1.6.2.2-g951f 391 10/17/2023
1.6.2 16,119 9/22/2018
1.6.1 2,375 9/21/2018
1.6.0.10-gadded5d 1,130 9/21/2018
1.6.0.5-g60b7646 1,117 9/21/2018
1.6.0.4-g722b7a5 1,141 9/21/2018
1.6.0.3-g633752d 1,137 9/21/2018
1.6.0.1-ga30cb97 1,153 9/21/2018
1.6.0 1,277 9/21/2018
1.5.0.49-gd5f5b37 1,167 9/21/2018
1.5.0.49-g980f0cd 1,137 9/21/2018
1.5.0.48-g68c0476 1,165 9/21/2018
1.5.0.47-g2a7db1e 1,145 9/21/2018
1.5.0.45-g8a1bdf5 1,145 9/21/2018
1.5.0.44-g36918a1 1,128 9/21/2018
1.5.0 10,306 1/24/2018
1.4.0 12,148 8/29/2017
1.3.0 7,652 6/30/2017
1.2.2 1,679 5/16/2017
1.2.1 1,514 5/3/2017
1.2.0 2,569 3/20/2017
1.1.0 2,998 12/15/2016
1.0.1 2,598 10/28/2016
1.0.0 1,967 10/21/2016
0.5.13 1,904 10/14/2016
0.5.12 1,561 10/11/2016
0.5.11 2,771 8/2/2016
0.5.10 1,631 7/29/2016
0.5.9 1,840 7/26/2016
0.5.8 1,586 7/8/2016
0.5.7 1,556 7/8/2016
0.5.6 2,217 7/7/2016
0.5.5 1,974 7/3/2016
0.5.4 1,513 6/27/2016
0.5.3 1,665 6/6/2016
0.5.2 1,543 6/2/2016
0.5.1 1,584 5/6/2016
0.5.0 1,593 5/4/2016
0.1.0 1,603 5/2/2016
0.0.63 1,770 4/27/2016
0.0.57 1,725 4/27/2016
0.0.50 1,651 4/27/2016
0.0.2 1,881 4/26/2016
0.0.1 1,729 4/26/2016