Giter Site home page Giter Site logo

finitestateentropy's Introduction

Finite State Entropy coder

FSE is a new kind of Entropy encoder, based on ANS theory, from Jarek Duda.

It is designed to compete with Huffman encoder and Arithmetic ones.

While huffman is fast but can only represent probabilities in power of 2 (50%, 25%, etc.) arithmetic coding can represent probabilities with much better accuracy, but requires multiplications and divisions.

FSE solve this dilemna by providing precise probabilities, like arithmetic does, but using only additions, masks and shifts.

This makes FSE faster, on par with Huffman speed, and even suitable for low-power CPU environment.

Benchmarks

Benchmarks are run on an Intel Core i5-3340M (oc'ed to 3.0GHz), with Window Seven 64-bits. Source code is compiled using MSVC 2012, 64-bits mode. Core loop results are reported ( FSE_compress_usingCTable() & FSE_decompress_usingDTable() )

FilenameCompressorRatioCompressionDecompression
book1FSE1.766430 MS/s540 MS/s
win98-lz4-runFSE2.688430 MS/s540 MS/s
proba70.binFSE6.337430 MS/s520 MS/s
proba90.binFSE15.29430 MS/s520 MS/s

Speed is provided in MS/s (Millions of Symbols per second). For more detailed results, browse the benchmark results

As an obvious outcome, speed of FSE is stable accross all tested file. By design, Huffman can't break the "1 bit per symbol" limit. FSE is free of such limit, so its performance increase with probability, remaining close to Shannon limit.

Branch Policy

The "master" branch will reflect the status of stable releases of FSE. The "dev" branch is the one where all contributions will be merged. If you plan to propose a patch, please commit into the "dev" branch. Direct commit to "master" are not permitted. Feature branches will also exist, typically to introduce new requirements, and be temporarily available for testing before merge into "dev" branch.

finitestateentropy's People

Contributors

bulat-ziganshin avatar cyan4973 avatar

Watchers

 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.