Which compression method to use?

Feb 23, 2008 at 11:12 AM
Edited Feb 23, 2008 at 11:14 AM
To improve the memory allocation, the embedded resource geospatial information should be compressed. Initially I was thinking of using the 7 Zip compression (LZMA) but when I downloaded the SDK there's a number of files and my initial thoughts where 'sigh... could be a bit too hard to figure out what is what, let alone what code i'm allowed to use legally, etc'.

Secondaly, I didn't want to have a dependency on a 3rd party DLL. This would mean that everytime someone uses this IP2Country dll, they would be required to have the 3rd party dll also.

So .. suggestions or thoughts?

7 Zip SDK: http://www.7-zip.org/sdk.html
Feb 23, 2008 at 1:18 PM
Edited Feb 23, 2008 at 1:18 PM
I didn't know this, but the core .NET library contains support for GZip compression and decompression with the namespace System.IO.Compression . Nice! So I've gzip up the data file, made sure it's an embedded resource, then gzip decompressed it during the retrieval of the data.