Zach Beane ([info]xach) wrote,
@ 2009-06-04 09:30:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:lisp

Chipz vs. YA Deflate

Pierre Mai released his new deflate inflating library yesterday, so I did little bit of testing against Chipz. On my Core 2 Duo system with 64-bit SBCL, Chipz is about 25% faster at inflating. Pierre says his program is "...for those who need something with a less restrictive license or better performance than is currently freely available", but it seems to me that the main advantage over Chipz is that it has a very simple interface and lives in a single file.

I didn't try it against inflate.cl because that file was recently updated and uses Allegro CL-specific code now.

Also, when fiddling around making a test file, I was pleased to see this:

(time (salza2:gzip-file "kjv10.txt" "kjv10.salza2.gz"))
Evaluation took:
  0.546 seconds of real time
  0.540000 seconds of total run time (0.540000 user, 0.000000 system)
  98.90% CPU
  981,743,175 processor cycles
  279,984 bytes consed
$ time gzip -c kjv10.txt > kjv10.gzip.gz

real    0m0.624s
user    0m0.630s
sys     0m0.000s

But sad to see this:

$ ls -l kjv10.*.gz 
-rw-r--r-- 1 xach xach 1403140 2009-06-04 06:52 kjv10.gzip.gz
-rw-r--r-- 1 xach xach 2014735 2009-06-04 06:52 kjv10.salza2.gz

It's not so hard to be fast when you do a bad job. :)




(1 comment) - (Post a new comment)

My results
(Anonymous)
2009-06-07 04:45 pm UTC (link)
I believe the swfs that I create with Salza2 are generally only 5-10% larger than the original versions created by Adobe's mxmlc tool.

(Reply to this)


(1 comment) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…