Jump to content

Photo

LZ4 for Atari

xBios LZ4

8 replies to this topic

#1 xxl OFFLINE  

xxl

    Stargunner

  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Tue Oct 8, 2013 2:59 PM

 
LZ4 decompressor for Atari,
 
comparision:
source file: gpl3.txt - 35147 bytes
 
exomizer - 12382 bytes + ~256 bytes, decompression time 2.6 sec
 
deflate - 11559 bytes + ~512 bytes, decompression time 3.6 sec
 
LZ4 - 15622 bytes + ~150 bytes, decompression time 1.1 sec
 
 
direct LZ4 file loading (file=source)
 
 
 


#2 Stephen OFFLINE  

Stephen

    Quadrunner

  • 7,538 posts
  • A8 Gear Head
  • Location:No longer in Crakron, Ohio

Posted Tue Oct 8, 2013 3:04 PM

Nice!

#3 Tezz OFFLINE  

Tezz

    River Patroller

  • 2,406 posts
  • Location:Manchester, England

Posted Tue Oct 8, 2013 3:05 PM

I saw your demonstration video yesterday, and the discussion at aol. Another useful addition for A8 production :thumbsup:



#4 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,436 posts
  • Location:United Kingdom

Posted Tue Oct 8, 2013 3:30 PM

Always interested in fast decompression algorithms. What's the beef about the choice of file header bytes, BTW?



#5 xxl OFFLINE  

xxl

    Stargunner

  • Topic Starter
  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Wed Oct 9, 2013 12:58 AM

http://www.atarimax....rg/afmtexe.html

 

maybe in xB I should add new segment header type $0000 (never as first header in file) - indicates compressed segment. All I/O like note/point, binary load, load data, get... will work with this feature and provide actual not compressed data 



#6 Tezz OFFLINE  

Tezz

    River Patroller

  • 2,406 posts
  • Location:Manchester, England

Posted Wed Oct 9, 2013 1:38 AM

I normally pack with exomiser, but LZ4 decompression on the fly would be a good option for xb



#7 xxl OFFLINE  

xxl

    Stargunner

  • Topic Starter
  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Thu Oct 10, 2013 10:18 AM

source code:

 

http://xxl.atari.pl/?p=1524

 

132 bytes (not using ZeroPage)



#8 Tezz OFFLINE  

Tezz

    River Patroller

  • 2,406 posts
  • Location:Manchester, England

Posted Thu Oct 10, 2013 11:44 AM

Thanks Xxl and Fox  :thumbsup:  I will make use of LZ4 right now for one of the projects while putting some stuff together with xbios for the weekend.



#9 xxl OFFLINE  

xxl

    Stargunner

  • Topic Starter
  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Fri Oct 11, 2013 4:57 AM

An example of how to use it: http://xxl.atari.pl/?p=1561







Also tagged with one or more of these keywords: xBios, LZ4

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users