1. Compressing sequences
- Posted by Darren Hewer <darren_hewer at HOTMAIL.COM> Nov 23, 1998
- 454 views
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
2. Re: Compressing sequences
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Nov 23, 1998
- 465 views
- Last edited Nov 24, 1998
.>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