On Wed, Mar 3, 2010 at 2:46 PM, Jos Timanta Tarigan
<[email protected]> wrote:
> hi,
>
> aim running a program which loops a lot and i use lots of object. it was fast 
> at the beginning but then it slower later on. im curious if my memory 
> allocation is the problem.
>
> so my code is a little bit rough so after i create an object, i tend not to 
> destroy it. but then it happen in a method that being called a lot. is C++ 
> care enough to destroy the object after it finished call the method? is my 
> program tendency become slower by this? im using os x and i notice that my 
> memory is not at its peak, around 80%, but my cpu does not work maximal too 
> averagely 57%. any advice?

Let's see the code. How are you creating the objects?

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to