Hi all, been a long time since I need to come here.
I'm looking for a solution to a space problem that I am having. I run a mud, (multi-user-dungeon) and it creates a log for every action of all the players. This takes up alot of space, and I've had to start removing things from teh log to save space, that is a bad solution.
I would do routine compressions of the data if I could, however the mud later on needs the uncompressed data, as we recall the text via a webserver implemented in the mud.
I had the idea of compressing the data using either zlib, or another compression technique, however I am not very well versed in such things.
I would need to compress when writing, and uncompress when reading, without a noticeable speed decrease
My question to you experts: What compression solution should I use (zlib/other?) and is it possible that someone could write me up a quick snippet or code to show me how I would go about compressing/decompressing text on the fly.