Memory Compression

  • Thread starter Thread starter Extremest
  • Start date Start date
E

Extremest

I there a way to compress the data that I have in memory so I can hold
more. My program eats a lot of memory and would like to have it do
more but can't because of the memory issue.
 
Extremest,

It wouldn't be a good idea to do this. The reason being that if you are
accessing this memory frequently, then you would have to perform a
conversion operation for each read/write and that would be costly.

Rather, you are probably using some resources incorrectly, or not
factoring in what you are processing into your design properly.

Can you elaborate more on what you are doing, and why you think you need
more memory? Are you actually getting OutOfMemory exceptions thrown as a
result?
 
How much data are you actually holding that this is an issue?

Compression could be a good amortization depending on what type of data you
are holding if you are not using much processor. Another amortization that
could be useful would be to use a disk based backing (i..e files or a
sqlserver) to hold some of the data you dont use much. Of course windows
will do this on its own with the page file...

Perhaps you can give some further information?

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
 
Extremest,
If your program legitimately (not because of poor design) uses a lot of
memory, your best and most efficient solution is to buy more memory, not to
come up with some scheme to compress memory.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top