msgpack.light 2.0.1.1-gc7cb

This is a prerelease version of msgpack.light.
dotnet add package msgpack.light --version 2.0.1.1-gc7cb                
NuGet\Install-Package msgpack.light -Version 2.0.1.1-gc7cb                
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.1-gc7cb" />                
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.1-gc7cb                
#r "nuget: msgpack.light, 2.0.1.1-gc7cb"                
#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.1-gc7cb&prerelease

// Install msgpack.light as a Cake Tool
#tool nuget:?package=msgpack.light&version=2.0.1.1-gc7cb&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

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 514 11/19/2023
2.0.1 2,459 11/17/2023
2.0.0.7-g8e2b 402 11/19/2023
2.0.0.6-g634e 408 11/17/2023
2.0.0.5-g2230 413 11/17/2023
2.0.0.4-gfad92 392 11/17/2023
2.0.0.2-ga6f6 389 11/17/2023
2.0.0.1-gb047 458 10/17/2023
2.0.0 485 10/17/2023
1.6.2.31-g7d7e83d 1,163 2/2/2019
1.6.2.30-g338aad4 1,124 1/17/2019
1.6.2.28-g38f1ac5 1,164 1/13/2019
1.6.2.25-g0350b6b 1,152 11/20/2018
1.6.2.24-gc7f80a8 1,139 11/19/2018
1.6.2.23-gf4ae5ff 1,147 11/19/2018
1.6.2.8-g5a4d 441 10/17/2023
1.6.2.7-g653f 422 10/17/2023
1.6.2.5-g6665 451 10/17/2023
1.6.2.3-g9cac 444 10/17/2023
1.6.2.2-g951f 448 10/17/2023
1.6.2 16,597 9/22/2018
1.6.1 2,519 9/21/2018
1.6.0.10-gadded5d 1,176 9/21/2018
1.6.0.5-g60b7646 1,161 9/21/2018
1.6.0.4-g722b7a5 1,182 9/21/2018
1.6.0.3-g633752d 1,203 9/21/2018
1.6.0.1-ga30cb97 1,198 9/21/2018
1.6.0 1,326 9/21/2018
1.5.0.49-gd5f5b37 1,205 9/21/2018
1.5.0.49-g980f0cd 1,194 9/21/2018
1.5.0.48-g68c0476 1,214 9/21/2018
1.5.0.47-g2a7db1e 1,212 9/21/2018
1.5.0.45-g8a1bdf5 1,205 9/21/2018
1.5.0.44-g36918a1 1,187 9/21/2018
1.5.0 10,804 1/24/2018
1.4.0 12,772 8/29/2017
1.3.0 7,998 6/30/2017
1.2.2 1,734 5/16/2017
1.2.1 1,555 5/3/2017
1.2.0 2,663 3/20/2017
1.1.0 3,115 12/15/2016
1.0.1 2,724 10/28/2016
1.0.0 2,019 10/21/2016
0.5.13 1,981 10/14/2016
0.5.12 1,611 10/11/2016
0.5.11 2,879 8/2/2016
0.5.10 1,694 7/29/2016
0.5.9 1,904 7/26/2016
0.5.8 1,632 7/8/2016
0.5.7 1,602 7/8/2016
0.5.6 2,292 7/7/2016
0.5.5 2,047 7/3/2016
0.5.4 1,548 6/27/2016
0.5.3 1,716 6/6/2016
0.5.2 1,603 6/2/2016
0.5.1 1,621 5/6/2016
0.5.0 1,643 5/4/2016
0.1.0 1,651 5/2/2016
0.0.63 1,844 4/27/2016
0.0.57 1,785 4/27/2016
0.0.50 1,707 4/27/2016
0.0.2 1,935 4/26/2016
0.0.1 1,788 4/26/2016