Group: comp.lang.c++
From: "Chris Thomasson"
Date: Sunday, April 13, 2008 9:30 PM
Subject: Re: Do you use a garbage collector?

"Chris Thomasson" wrote in message
news:bJydnYH4OYpJMJ_VnZ2dnUVZ_tyknZ2d@comcast.com...
> "Razii" wrote in message
> news:fja504hipp94ims7vpnafuc8erbkkne610@4ax.com...
>> On Sun, 13 Apr 2008 18:11:06 -0700, "Chris Thomasson"
>> wrote:
>>
>>>What numbers do you get? Does that improve anything?
>>
>> No. 26891 ms
>>
>> It's worse since the memory peak was 700 MB! (the original was only
>> around 65 MB peak).
>>
>> Here is java version...
>>
>> http://pastebin.com/f3f559ae2 (java )
>>
>> (run it with these flags)
>> java -server -Xmx86m -Xms86m -Xmn85m Test
>>
>> it's around 1800ms with 73 MB peak memory , exactly 15% faster.
>
> Your original C++ version was leaking a shi%load of memory. Here is how to
> "fix" your major bug:

False alarm.

Safety Articles | Usenet Groups | Usenet News | Bluegrass