gnustep-dev
[Top][All Lists]
Advanced

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

Re: GSSet explodes with too many data


From: Nicola Pero
Subject: Re: GSSet explodes with too many data
Date: Tue, 7 Sep 2004 11:56:47 +0100 (BST)

> my company develops a software to explore very large quantities of data 
> using GNUstep-base 1.9.2 mainly on windows.
> 
> it works generally well in production with our customers. (our customers 
> are bankers!...)
> 
> In development, it allows us to do the coding on mac OSX then build on 
> windows and then check for diffences. we're also very happy with this.
> 
> however we did find some bugs for which we wrote some workaround.
> 
> when we feed the product with too many data it explodes with a 
> windows-like core-dump.
> 
> our debugging showed that we relied on GSSet: - (NSArray*) allObjects
> which explodes because the objects array is allocated on the stack, 
> which has a limited size, rather than on the heap.
> therefore, we rewrote the method as:

The best option might be to count the number of objects; if we have less
than, say, fifty, we use the stack, else we malloc memory.





reply via email to

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