1. Compressing sequences

Hi. I've been receiving this ML for awhile, but haven't really been
reading it, so please forgive me if someone has already mentioned an
idea like this ...

For the project I'm working on, I have the need to save lots of big
sequences to disk. I won't go into why because that would take too long.
Needless to say, I'm going to need some way to compress them. I've tried
EDOM, and it works fairly well ... but, I have another idea ...

My original file (saved using prints) was about 60,000 bytes. The one
saved using EDOM was about 24,000 bytes. However ... if I used PKZip to
zip my original, print'ed set of sequences, it became ... 622 bytes!
Yikes! Would there be a way to save and load zipped sequences 'on the
fly', ie, save_zipped_seq () / load_zipped_seq? Or is this just a dumb
idea?

No flames. I'm still a newbie to most of this stuff. ;)

DARREN HEWER, darren_hewer at hotmail.com
Humble subordinate of Autumn Dreams
emmzee on #megazeux
"Buh-bye everybudy! Have a nice day!"

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: Compressing sequences

.>My original file (saved using prints) was about 60,000 bytes. The one
>saved using EDOM was about 24,000 bytes. However ... if I used PKZip to
>zip my original, print'ed set of sequences, it became ... 622 bytes!
>Yikes! Would there be a way to save and load zipped sequences 'on the
>fly', ie, save_zipped_seq () / load_zipped_seq? Or is this just a dumb
>idea?

EDOM stores sequences efficiently, however only provides an interface for
encryption and compression of data. I will not give it a shot, but there are
many docs out there that describe the structure of a zip file, and the
method used. I do suspect it will be slow. Maybe some of the ASM guru's out
there, could make a machine routine that 1) opens files within the zip 2)
allow normal i/o commands to be executed upon the zip. Together with a
wrapper, the actual coder doesnt even have to use different routines, simply
open the file like open( "myzip.zip/myfile.dat" , "rz" ) -- Read zipped file

But off course this is only speculation. You could off course use one of the
many free DLL's under WIN32.

Good luck,

Ralf

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu