Solved

Looking for freeware lib for memory compression/decompression

Posted on 2004-04-24
3
210 Views
Last Modified: 2013-11-20
I'm developing an app that reads in a relatively large text file (12 megs) before it can get started. Now I use a single raw read and do some parsing.

I'd like to reduce the load/launch time and thought I could shave some time by handling the file as compressed. I was hoping to get some guidance as to an easy to use freeware library (preferrably open source) that does speedy decompression. My thinking was to read it in, then do in-memory decompression. Also, I would want to be able to compress perhaps 5000 bytes to put in the registry as binary data. Some password protection or encription would be a plus, but not essential.

I'm getting ready to look at 7-up and ChilKat, but I thought I'd ask first before staring at them. I'm appreciate hearing from people with experience with either/both of the above, or a preferred alternative.

TIA
0
Comment
Question by:ee-user
  • 2
3 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10906947
zlib (http://www.gzip.org/zlib/) is free and open source.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 125 total points
ID: 10906953
This MFC project uses zlib, so you may get some inspiration from it: http://www.codeproject.com/cpp/zip.asp?df=100&forumid=818&exp=0&select=742790

Here you can find Windows DLLs of zlib: http://www.winimage.com/zLibDll/
0
 
LVL 7

Expert Comment

by:vijay_visana
ID: 10915588
If it is not neccessary  to read all file when your application show up use background worker thread.
If you provide some more detail about your application we may able to suggest some other way out.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now