Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bwlewis/lz4
LZ4 Data Compression and Decompression for R
https://github.com/bwlewis/lz4
compression decompression lz4
Last synced: 29 days ago
JSON representation
LZ4 Data Compression and Decompression for R
- Host: GitHub
- URL: https://github.com/bwlewis/lz4
- Owner: bwlewis
- License: other
- Created: 2015-10-30T01:12:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T18:49:58.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T22:16:01.110Z (4 months ago)
- Topics: compression, decompression, lz4
- Language: C
- Size: 143 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - bwlewis/lz4 - LZ4 Data Compression and Decompression for R (C)
README
# DEFUNCT
This package will probably not be maintained. Instead, use the better 'fst'
package, see http://www.fstpackage.org/, which now includes faster and better
in-memory compression methods `fst::compress_fst` and `fst::decompress_fst`
covered here, as well as several file-based compression options.Note that neither this package nor the fst package include proper streaming
options to arbitrary connections...something someone should add to fst!October, 2018: there were some severe internal lz4 bugs that apparently also
affect the fst package. I re-activated this repository to update lz4 for those
who are still using it, and will file bug reports against fst...However, one potential advantage of this package is default single-threaded
operation (when used in process-parallel settings)--although that can be
overcome with a function in the fst package, and compatability with the
command line lz4 file format, see for instance the example in the help page for
`?lzDecompress`.# lz4 Data Compression/Decompression Functions
## Installation
Easiest to install with the `devtools` package:
```r
devtools::install_github("bwlewis/lz4")library(lz4)
?lzCompress
```## TODO
Add data streaming functions! ANYONE WANT TO HELP ADD THESE?
## Overview of the lz4 algorithms
LZ4 is lossless compression algorithm, providing compression speed at 400 MB/s
per core (0.16 Bytes/cycle). It features an extremely fast decoder, with speed
in multiple GB/s per core (0.71 Bytes/cycle).## References
At least two other R packages, the
http://www.bioconductor.org/packages/release/bioc/html/gdsfmt.html package from
the Bioconductor, and https://github.com/fstPackage, use the lz4 library.
However both packages are sufficiently specialized implementation that I
decided to write this much simpler, limited package with a focus only on
compression to promote software modularity.See http://www.lz4.org for more on lz4.