lz4

lz4-erlang 生成 Windows 动态链接库 dll

醉酒当歌 提交于 2019-12-04 06:39:50
lz4-erlang 生成Windows动态链接库(dll) 1、下载 lz-erlang 库 2、打开 Visio studio,创建空白 C++ 项目 3、添加相关的 .c 和 .h 4、修改项目属性 5、生成 dll 1、下载 lz4-erlang 库 git clone https://github.com/rabbitmq/lz4-erlang.git 下载依赖: git clone https://github.com/lz4/lz4.git git clone https://github.com/ninenines/nif_helpers.git 2、Visio studio 创建空白项目 项目名 lz4_nif 创建过程(略) 3、添加相关的 .c 和 .h 3.1、将下面目录中的 .c 和 .h 的文件复制到项目 lz4_nif lz4-erlang/c_src/ lz4/lib/ nif_helpers/ nif_helpers/compat/sys/ 3.2、将 .h 添加到 头文件 3.3、将 .c 添加到 源文件 如图: 4、修改 属性 修改项目的 属性 -> VC++目录 : 4.1、将 C:\Program Files\erl10.4\usr\include 添加到 包含目录 4.2、将 C:\Program Files\erl10.4\usr

Reading large lz4 compressed JSON data set in Python 2.7

淺唱寂寞╮ 提交于 2019-12-01 08:48:13
问题 I need to analyze a large data set that is distributed as a lz4 compressed JSON file. The compressed file is almost 1TB. I'd prefer not to uncompress it to disk due to cost. Each "record" in the dataset is very small, but it is obviously not feasible to read the entire data set into memory. Any advice on how to iterate through records in this large lz4 compressed JSON file in Python 2.7? 回答1: As of version 0.19.1 of the python lz4 bindings, there is full support for buffered IO provided. So,

LZ4 library decompressed data upper bound size estimation

最后都变了- 提交于 2019-11-30 19:09:36
I'm using LZ4 library and when decompressing data with int LZ4_decompress_safe (const char* source, char* dest, int compressedSize, int maxDecompressedSize); I want to estimate maximum decompressed data size. But I can not find reverse function of int LZ4_compressBound(int isize); with which I can determine the upper bound for decompressed data, which to provide to last parameter maxDecompressedSize , of decompressing function. Other compression libraries like snappy for example, provides such function. bool GetUncompressedLength(Source* source, uint32* result); What can I do if I have not

LZ4 library decompressed data upper bound size estimation

牧云@^-^@ 提交于 2019-11-30 03:41:23
问题 I'm using LZ4 library and when decompressing data with int LZ4_decompress_safe (const char* source, char* dest, int compressedSize, int maxDecompressedSize); I want to estimate maximum decompressed data size. But I can not find reverse function of int LZ4_compressBound(int isize); with which I can determine the upper bound for decompressed data, which to provide to last parameter maxDecompressedSize , of decompressing function. Other compression libraries like snappy for example, provides

Execute linux command on Centos using dotnet core

余生颓废 提交于 2019-11-28 10:55:23
问题 I'm running a .NET Core Console Application on CentOS box. The below code is executing for normal command like uptime , but not executing for lz4 -dc --no-sparse vnp.tar.lz4 | tar xf - Logs.pdf : try { var connectionInfo = new ConnectionInfo("server", "username", new PasswordAuthenticationMethod("username", "pwd")); using (var client = new SshClient(connectionInfo)) { client.Connect(); Console.WriteLine("Hello World!"); var command = client.CreateCommand("lz4 -dc --no-sparse vnp.tar | tar xf