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 489 11/19/2023
2.0.1 2,003 11/17/2023
2.0.0.7-g8e2b 376 11/19/2023
2.0.0.6-g634e 371 11/17/2023
2.0.0.5-g2230 381 11/17/2023
2.0.0.4-gfad92 373 11/17/2023
2.0.0.2-ga6f6 365 11/17/2023
2.0.0.1-gb047 429 10/17/2023
2.0.0 458 10/17/2023
1.6.2.31-g7d7e83d 1,140 2/2/2019
1.6.2.30-g338aad4 1,103 1/17/2019
1.6.2.28-g38f1ac5 1,145 1/13/2019
1.6.2.25-g0350b6b 1,130 11/20/2018
1.6.2.24-gc7f80a8 1,109 11/19/2018
1.6.2.23-gf4ae5ff 1,117 11/19/2018
1.6.2.8-g5a4d 420 10/17/2023
1.6.2.7-g653f 401 10/17/2023
1.6.2.5-g6665 422 10/17/2023
1.6.2.3-g9cac 417 10/17/2023
1.6.2.2-g951f 416 10/17/2023
1.6.2 16,360 9/22/2018
1.6.1 2,448 9/21/2018
1.6.0.10-gadded5d 1,149 9/21/2018
1.6.0.5-g60b7646 1,135 9/21/2018
1.6.0.4-g722b7a5 1,160 9/21/2018
1.6.0.3-g633752d 1,169 9/21/2018
1.6.0.1-ga30cb97 1,174 9/21/2018
1.6.0 1,302 9/21/2018
1.5.0.49-gd5f5b37 1,182 9/21/2018
1.5.0.49-g980f0cd 1,163 9/21/2018
1.5.0.48-g68c0476 1,182 9/21/2018
1.5.0.47-g2a7db1e 1,178 9/21/2018
1.5.0.45-g8a1bdf5 1,176 9/21/2018
1.5.0.44-g36918a1 1,160 9/21/2018
1.5.0 10,377 1/24/2018
1.4.0 12,315 8/29/2017
1.3.0 7,691 6/30/2017
1.2.2 1,700 5/16/2017
1.2.1 1,533 5/3/2017
1.2.0 2,614 3/20/2017
1.1.0 3,043 12/15/2016
1.0.1 2,631 10/28/2016
1.0.0 1,985 10/21/2016
0.5.13 1,935 10/14/2016
0.5.12 1,584 10/11/2016
0.5.11 2,792 8/2/2016
0.5.10 1,661 7/29/2016
0.5.9 1,863 7/26/2016
0.5.8 1,600 7/8/2016
0.5.7 1,570 7/8/2016
0.5.6 2,236 7/7/2016
0.5.5 1,991 7/3/2016
0.5.4 1,517 6/27/2016
0.5.3 1,682 6/6/2016
0.5.2 1,567 6/2/2016
0.5.1 1,590 5/6/2016
0.5.0 1,606 5/4/2016
0.1.0 1,628 5/2/2016
0.0.63 1,808 4/27/2016
0.0.57 1,754 4/27/2016
0.0.50 1,684 4/27/2016
0.0.2 1,905 4/26/2016
0.0.1 1,764 4/26/2016