I converted my pure perl gunzip to a data driven callback model.
You can find the result at:
  http://www.xs4all.nl/~thospel/ASIS/lib/Gunzip.pm

The inversion of the code needed to have the huffman code reading
unrolled, so this version is actually about 20% faster if you feed
it big enough buffers (8K or bigger) at a time. Still, it's more
than twice as long now, so I'd only use this version if you can't
get data on demand.
-- 
My pid is Inigo Montoya. You kill -9 my parent process. Prepare to vi.

Reply via email to