Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Looking for freeware lib for memory compression/decompression

Posted on 2004-04-24
3
Medium Priority
?
232 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 500 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

782 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