in reply to Compression of a mini-database in memory

Am I missing something obvious? It strikes me that there's very little to be gained by compressing a data structure which is kept in memory.

After all, the first time you uncompress it, your process eats more memory. In general, you can't give memory back to the operating system.

Peace,
-McD

  • Comment on Re: Compression of a mini-database in memory

Replies are listed 'Best First'.
(tye)Re: Compression of a mini-database in memory
by tye (Sage) on Feb 17, 2001 at 02:29 UTC

    If you have N things and only ever keep 1 uncompressed in memory at a time, then you can reduce the memory required.

            - tye (but my friends call me "Tye")