Comments (2)
In fact, there is another way to improve the format, which will be almost compatible with the existing format. The pseudo-code would look as follows:
if (len == low) {
len += byte1;
if (len <= 255)
// same as before, +1 byte for lengths low..255
else if (len == 256)
// same as before, +3 bytes for lengths up to 65535
else
// we used +2 bytes for lengths 256..511
// however, we can use (len-256)*256 + byte2 which will make use of all currently unused values.
}
In fact Z80 decompressors are already compatible with this format change. However, current decompressors for 8088 and 6502 are not compatible. Our current plan is to modify decompressors for this change and introduce the change at the compressor level together with the next minor version update. Or the one after. We do not want to rush it, esp. since the change in the compression ratio is basically negligible.
from lzsa.
Hi da0ka, yes, this is a small inefficiency in the format, which was introduced to save on an extra operation in the decompressor. I.e. it is a performance optimization. Since the compressor itself is nearly optimal, it very well compensates for this inefficiency, literally losing 2 or 3 bytes per file usually.
from lzsa.
Related Issues (19)
- msufsort HOT 1
- typo? HOT 1
- 8088 decompressors won't run on 8088 HOT 3
- Faster 6502 decompressor & suggestions for possible format changes. HOT 3
- [Question] Cortex M4 assembly decompressor HOT 1
- Bug in decompress_small_v1.S for 8088? HOT 9
- MC68000 depacker source HOT 1
- gcc with C++11 incompatibilities HOT 1
- 13-bit match offset description error HOT 2
- Suggestion: Support for streamed decompression? HOT 5
- lzsa v1.3.6 crashes when built under linux HOT 1
- Format documentation typo in LZSA2. HOT 5
- Suggestion: ZX0 and ZX1 HOT 2
- Feature request
- 8086 depacker for non-raw LZSA2 file HOT 3
- Segmentation fault when compressing since commit on 2021-06-04 HOT 1
- fast match finder HOT 1
- Can't decompress raw block backwards on 6502
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.
from lzsa.