Skip to content

Latest commit

 

History

History

Joveler.Compression.LZ4

Joveler.Compression.LZ4

LZ4 pinvoke library for .NET.

Install

Joveler.Compression.LZ4 can be installed via nuget.

NuGet

Performance

Please keep in mind that Joveler.Compression.LZ4 have been uploaded to the nuget because it supports many customizable options, not best in performance.

Decompression of Joveler.Compression.LZ4 is similar or slightly faster than the pure C# implementation, K4os.Compression.LZ4. In the meanwhile the compression is about 50% faster to 2000% slower. Please be careful about performance when using it on production.

Features

Support

Targeted .NET platforms

  • .NET Standard 2.1 (.NET Core 3.0+)
  • .NET Standard 2.0 (.NET Framework 4.6.1+, .NET Core 2.0+)
  • .NET Framework 4.5.1

Supported OS platforms

Platform Architecture Tested
Windows x86 Yes
x64 Yes
arm64 Yes
Linux x64 Yes
armhf Yes
arm64 Yes
macOS x64 Yes

macOS arm64 should be supported on theory, but I do not have access to an Apple Sillicon device to test. Please contribute if you have an ARM64 macOS machine.

Tested linux distributions

Architecture Distribution Note
x64 Ubuntu 18.04 Tested on AppVeyor CI
armhf Debian 10 Emulated on QEMU
arm64 Debian 10 Emulated on QEMU

Supported LZ4 version

  • 1.9.1
  • 1.9.2
  • 1.9.3 (Included)

Usage

See USAGE.md.

Changelog

See CHANGELOG.md.

License

Joveler.Compression.LZ4 is licensed under BSD 2-Clause license.