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
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.