Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
aplib decompressor for ZX Basic.
#25
britlion Wrote:
boriel Wrote:
britlion Wrote:I did some tests. Aplib is slightly better at compression than MegaLZ. On average. Not always - text seems to be a weakness, with MegaLZ winning for one of my text tests.

The difference is very thin, however. How big is the decompressor in bytes, is the next question. Compared to MegaLZ. If it's the same size or smaller, Aplib is probably always the right choice. If it's bigger...you've got a dilemma Smile
From the compiler point of view, I will include both of them. The user must then try packing the binary data with both compressors and choose the smallest result, IMHO.

Surely if one decompressor is larger, you have to take that into account?

10 bytes smaller for data, and 100 bytes larger for decompressor isn't a win Smile
That's right. The programmer must keep this trade-off in mind. But I think we must left this decision on the programmer's side, and include both libraries.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)