msgpack.light 2.0.0.6-g634e

This is a prerelease version of msgpack.light.
There is a newer version of this package available.
See the version list below for details.
dotnet add package msgpack.light --version 2.0.0.6-g634e                
NuGet\Install-Package msgpack.light -Version 2.0.0.6-g634e                
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.0.6-g634e" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add msgpack.light --version 2.0.0.6-g634e                
#r "nuget: msgpack.light, 2.0.0.6-g634e"                
#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.0.6-g634e&prerelease

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