Git Product home page Git Product logo

compressions's Introduction

Installation and setup

Install Rust as described here.

To compile and run the program (display usage information), run

cargo run --release -- -h

To specify different options and arguments, write them after the -- (instead of -h).

Functions

The program implements an LZ77 compressor and decompressor which can be used for arbitrary byte sequences. No metadata is written, the parameters (lookback buffer size and maximum length) cannot be changed at runtime (but can easily changed at compile time).

For little-endian 64 bit integers, the program can optionally perform delta encoding and decoding. To enable it, use the -e flag. In this case, the byte sequence is interpreted as 64 bit integers. If the input byte size is not divisible by 8, padding with zeros is assumed.

Run cargo run --release -- -h to get a usage description.

Data

In the data folder, example data files can be found. The files integer* contain 1 million integers in uncompressed, compressed and delta encoded compressed formats. The integers are from 0 to 10^6 - 1 in order, which is the best possible case for delta coding. Be advised that delta compressing the integers can be quite slow as finding matches in the lookback buffer is not optimized.

The file bscthesis.tex contains text which can be used to measure the compression without delta coding on real-world data.

compressions's People

Contributors

d-becker avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.