Solved

Looking for freeware lib for memory compression/decompression

Posted on 2004-04-24
3
215 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 120
Unix Command -- Challenging  question 7 88
Detect file exist or not 3 155
Problem to event 3 92
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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