discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSAutoreleasePool in GNUstep


From: Richard Frith-Macdonald
Subject: Re: Problem with NSAutoreleasePool in GNUstep
Date: Mon, 3 Dec 2001 13:07:10 +0000

On Monday, December 3, 2001, at 12:00 PM, ramana rao wrote:

 
JP,
 
    It seeme there is a problem with GNUstep NSAutorelease pools, unless I am very much mistaken

The perceived problem is really an artifact of the simplistic test used.
In real systems you -
a. wouldn't put huge numbers of objects in a single autorelease pool
b. have lots of swap space, so don't care about the peak memory size

Where there is a genuine problem with this behavior (ie your machine is very short of swap space) you can cure it by making better use of your autorelease pools (creating and destroying pools more frequently) or using the +freeCache method
(see the GNUstep NSAutoreleasePool documentation).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]