From: David Garamond Date: 2003-05-06T22:53:44+09:00 Subject: Re: Pure ruby stream compression library? Daniel Carrera wrote: > No I don't, but I'm interested in this problem: > > - Why do you not want external libraries? The application is to likely be deployed on a shared hosting server where I can't control the environment. It's good enough that Ruby is provided. Btw, come to think of it, zlib library should be common enough that when ruby is there very good chances is zlib is also there. > - Does it have to be a *stream* compression library? > You could get better results if you allow the data to be read in chunks. What I meant was stream-oriented, the way zlib or tar works. Contrast this with, say, zip or rar, which is file-oriented (you can't pipe a data onto zip to compress it, for instance). So chunk processing is an orthogonal issue. > Oh, and one more question, do you only need it to work on Ruby strings? > Or does it have to be generic data? Ruby strings is sufficient. I can load and unload the data to Ruby strings first. -- dave