B
BCC
Hi,
I have a c++ program that creates hundreds of thousands of objects.
Eventually, we would like to be able to create millions, but memory is
limiting us. For example, 125,000 objects currently takes up 286 megs of
memory.
This leads to a couple questions...
First, do accessor functions take up space? Are there certain tricks that I
should be aware of when designing a class? I am assuming the lightest
object I can use is just a container with only the necessary members, is
this right?
Are there any books or good websites that will help me lighten our classes
up a bit?
Thanks,
Bryan
I have a c++ program that creates hundreds of thousands of objects.
Eventually, we would like to be able to create millions, but memory is
limiting us. For example, 125,000 objects currently takes up 286 megs of
memory.
This leads to a couple questions...
First, do accessor functions take up space? Are there certain tricks that I
should be aware of when designing a class? I am assuming the lightest
object I can use is just a container with only the necessary members, is
this right?
Are there any books or good websites that will help me lighten our classes
up a bit?
Thanks,
Bryan