LZ4Sharp-master

所属分类:压缩解压
开发工具:C#
文件大小:41KB
下载次数:30
上传日期:2013-01-11 08:19:59
上 传 者pspdowndown
说明:  C#版本实现的LZ4 压缩解压算法,性能很高。
(LZ4 C# is about 2/3 the speed of the c version. (Also, LZ4C# is slightly faster on the whole silesia corpus than on just the ‘webster’ file) LZ4 C# Compressed silesia corpus is 47 of uncompressed LZ4 C# Compressed ‘webster’ file is 49 of uncompressed)

文件列表:
LZ4Sharp (0, 2012-10-11)
LZ4Sharp\ILZ4Compressor.cs (346, 2012-10-11)
LZ4Sharp\ILZ4Decompressor.cs (870, 2012-10-11)
LZ4Sharp\LZ4.cs (4129, 2012-10-11)
LZ4Sharp\LZ4.h (2058, 2012-10-11)
LZ4Sharp\LZ4Compressor.c (17971, 2012-10-11)
LZ4Sharp\LZ4Compressor32.cs (18676, 2012-10-11)
LZ4Sharp\LZ4Compressor64.cs (18892, 2012-10-11)
LZ4Sharp\LZ4CompressorFactory.cs (378, 2012-10-11)
LZ4Sharp\LZ4Decompressor.c (10158, 2012-10-11)
LZ4Sharp\LZ4Decompressor32.cs (10649, 2012-10-11)
LZ4Sharp\LZ4Decompressor64.cs (10796, 2012-10-11)
LZ4Sharp\LZ4DecompressorFactory.cs (386, 2012-10-11)
LZ4Sharp\LZ4Sharp.csproj (5290, 2012-10-11)
LZ4Sharp\LZ4Util.cs (1522, 2012-10-11)
LZ4Sharp\Properties (0, 2012-10-11)
LZ4Sharp\Properties\AssemblyInfo.cs (1075, 2012-10-11)
LZ4Sharp.Main (0, 2012-10-11)
LZ4Sharp.Main\LZ4Sharp.Main.csproj (6186, 2012-10-11)
LZ4Sharp.Main\Program.cs (4889, 2012-10-11)
LZ4Sharp.Main\Properties (0, 2012-10-11)
LZ4Sharp.Main\Properties\AssemblyInfo.cs (1468, 2012-10-11)
LZ4Sharp.Main\TestData (0, 2012-10-11)
LZ4Sharp.Main\TestData\non_matching_length_3.dat (86400, 2012-10-11)
LZ4SharpGenerator (0, 2012-10-11)
LZ4SharpGenerator\LZ4Compressor32.cs (0, 2012-10-11)
LZ4SharpGenerator\LZ4Compressor64.cs (0, 2012-10-11)
LZ4SharpGenerator\LZ4Decompressor32.cs (0, 2012-10-11)
LZ4SharpGenerator\LZ4Decompressor64.cs (0, 2012-10-11)
LZ4SharpGenerator\LZ4SharpGenerator.csproj (3736, 2012-10-11)
LZ4SharpGenerator\Program.cs (1477, 2012-10-11)
LZ4SharpGenerator\Properties (0, 2012-10-11)
LZ4SharpGenerator\Properties\AssemblyInfo.cs (1476, 2012-10-11)
changes.txt (469, 2012-10-11)
License.txt (2909, 2012-10-11)
LZ4Sharp.sln (3477, 2012-10-11)

* LZ4Sharp Port of Yann Collet's LZ4 algorithm to C# by Clayton Stangeland. Original LZ4 algorithm can be found at (http://code.google.com/p/lz4) it was created by Yann Collet. See license.txt for project license. * Build Building in Debug or Release will use the already generated C# files LZ4Compressor.c and LZ4Decompressor.c are updated by manually comparing to the original LZ4 code and fixing any C# differences from C but leaving some of the macros to make comparing easier. Then building in the Generated configuration will only build the LZ4SharpGenerator project which has a prebuild event that uses the MinGW gcc from CodeBlocks to generate the C# files from LZ4Compressor.c and LZ4Decompressor.c. * Timings Compression times do not include disk I/O. P4 = Pentium 4 2GHz 32 bit Windows XP i5 = Intel i5 2.67 GHZ *** bit Windows 7 running LZ4Sharp in *** bit LZ4Sharp = Timings for 'webster' from silesia corpus (http://sun.aei.plsl.pl/~sdeor/index.php?page=silesia) memcpy and LZ4 = Timing for file 'webster' in silesia corpus in m2mark.exe from http://sd-1.archive-host.com/membres/up/182754578/m2mark.zip (or from link to benchmark program at http://code.google.com/p/lz4) gzip = GZip from the Intel compiler built as a dll and accessed from C# by PInvoke Ratio = compressed size / decompressed size (lower is better) | Computer | Type | Compression (MB/s) | Decompression (MB/s) | Ratio (%) | |----------+----------+--------------------+----------------------+-----------| | P4 | memcpy | 217 | | | | P4 | LZ4 | 82 | 304 | | | P4 | LZ4Sharp | 43 | 150 | | | P4 | LZ4Sharp | 49 | 181 | | | i5 | memcpy | 1658 | | | | i5 | LZ4 | 270 | 1184 | | | i5 | LZ4Sharp | 207 | 758 | 49 | | i5 | LZ4Sharp | 267 | 838 | 47 | | i5 | gzip | 48 | 266 | 33 | ** Conclusion: LZ4 C# is about 2/3 the speed of the c version. (Also, LZ4C# is slightly faster on the whole silesia corpus than on just the 'webster' file) LZ4 C# Compressed silesia corpus is 47% of uncompressed LZ4 C# Compressed 'webster' file is 49% of uncompressed

近期下载者

相关文件


收藏者