Giter VIP home page Giter VIP logo

vzip's Introduction

vzip - Vlad's zip

  vzip is a simple compression program that works by compressing 8 MiB chunks
using huffman encoding. It compresses the 5458199 byte
"examples/shakespeare.txt" file down to 3272382 bytes or ~60% of the original
size. For reference, zip compresses the same file down to 2022556 bytes or 37%
of the original size.

=== USAGE ===

  This code was written on a Macbook, but it should work on linux and
ARM as well. To build the program, run "./build.sh release". The resulting
executable will be "build/vzip".

  To compress a file, run "vzip compress INPUT OUTPUT" where INPUT is the file
you wish to compress and OUTPUT is where the compressed file will be output.

  To decompress a file, run "vzip compress INPUT OUTPUT" where INPUT is a file
compressed by vzip and OUTPUT is where you want the original file.

=== Limitations ===

  There is no hash to check the integrity of the result, however offsets of
serialized huffman trees are verified to prevent undefined behavior.

  The implementation is completely unoptimized. It is single-threaded and
does not make use of useful x86_64 extensions like AVX-512 to speed up
encoding/decoding.

vzip's People

Contributors

vladov3000 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.