At 12:41 PM 5/22/2002 -0700, Sean O'Rourke wrote: >This is an implementation of LZW compression in Parrot assembly. The fact >that pack() can't handle null bytes makes it a bit more complicated (and >limited) than it has to be, but for just text files, it seems to work just >fine. It's probably a decent stress test for the hash PMC, but especially >for strings, since I probably go through more strings than I have to. > >It's also good for showing interesting performance effects: > >Compressing 20875 bytes: 5.3 sec >Compressing 19646 bytes: 1.4 sec > >I haven't looked into exactly why, but it looks like compact_string_pool() >is going insane (see attachment).
Very nice. I'm glad someone finally tried the IO ops besides my testing. :) This looks like a good candidate for the benchmark suite. -Melvin