xbarin02 / x-compressor Goto Github PK
View Code? Open in Web Editor NEWx – minimalist data compressor
License: MIT License
x – minimalist data compressor
License: MIT License
You can find the source at https://hg.ulukai.org/ecm/inicomp/file/1229f30865d2/x.asm
As noted in the initial commit it is based on git 71afd5b05eb4.
To save on the memory usage, I limited the ctFreq field to 16 bits. (Carry out of the top bit is detected as an error.) Even so, the context tables require 256 KiB. I also had to add some layer threshold memory (the word "layout" here is in error) so there's enough space to decompress subsequent layers. (The 96 kB kernel compresses to 62 kB and uses two layers.)
I did not yet inline function calls only used once. However, I do not expect much speed-up from that. I also did not yet add support for overlapping source and destination, which all four of the other decompressors do support.
Its speed seems to place it as the slowest of all five decompressors yet. I think the reason for that is that every byte has to call into bio_read_gr, increment_frequency, and update_model. I was able to modify/create all other (mostly LZ-like) decompressors to use repeated string instructions to write several literal or match bytes in one step.
It is also the first decompressor to need additional memory (other than stack frame variables). And the compression ratio is not especially good either. However, the port was interesting to me. Thanks for your work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.