1. Basic Compression Library
- Posted by ghaberek (admin) Sep 15, 2011
- 1323 views
Has anyone looked into adding the Basic Compression Library into Euphoria? It looks like it may be useful for adding in-built compression to Euphoria Database System. It might even be useful for compressing objects in memory to reduce footprint (with an optional --compression flag, perhaps?).
I'm really just throwing this out there since I don't recall it ever being discussed. So, discuss...
-Greg
2. Re: Basic Compression Library
- Posted by Vinoba Sep 15, 2011
- 1295 views
Has anyone looked into adding the Basic Compression Library into Euphoria? It looks like it may be useful for adding in-built compression to Euphoria Database System. It might even be useful for compressing objects in memory to reduce footprint (with an optional --compression flag, perhaps?).
I'm really just throwing this out there since I don't recall it ever being discussed. So, discuss...
-Greg
I would not use it, as "compressing objects in memory" does not impress me and at best it is dangerous.
Without meaning to offend anybody, I would consider it a waste of time of the developers.
3. Re: Basic Compression Library
- Posted by ghaberek (admin) Sep 15, 2011
- 1244 views
I would not use it, as "compressing objects in memory" does not impress me and at best it is dangerous.
Without meaning to offend anybody, I would consider it a waste of time of the developers.
True, I was just throwing it out there. But what about compression for large objects in EDS? This could be useful for storing binary "BLOB" data. Or perhaps for compressing and decompressing IL files? Perhaps I have a solution for want of a problem...
-Greg
4. Re: Basic Compression Library
- Posted by petelomax Sep 16, 2011
- 1184 views
A couple of weeks ago I was tasked with restoring/creating sage accounting backup files, not that I had any inside information so it was all a bit of a reverse engineering job.
I had an argument with zlib (on which I think bcl is based) before finding a pkzip dll which worked a charm. The test was to compress/uncompress wholly-in-memory BLOBs, and I've written the uncompress via callbacks using sensibly-sized blocks, but not the compress yet. When/if I finish the latter (all in yukky C++ btw) I was planning on porting it to Eu.
NB: it would be a compress/uncompress routine that would work on files (already open for read/write at the correct location), or in-memory BLOBS, and NOT something you could just chuck a ".zip" or ".rar" etc file at.
Just letting you know my plans, no promises or timescales.
Regards, Pete