bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSArray: Problem allocating memory on stack on windows


From: Frederic Stark
Subject: Re: NSArray: Problem allocating memory on stack on windows
Date: Tue, 14 Oct 2003 17:26:03 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20030906

Hi,

Roland Schwingel wrote:

Also a good idea.... In our tests we got problems with arrays >52000
elements.
As of the fact that the stack might be longer in some cases, it might be
good
enough to set the limit to about 32768 (isn't that a fine number)?

I don't think 32768 is a good choice:

1/ It let casual reader of the code thinking that it may have something to do with 2^15. He'll start to worry that, maybe, therte is a signed 2 byte number somewhere.

2/ It is way too big, as it would use more than half of the stack.

I would suspect that the good number is around 100.

Cheers,

--fred






reply via email to

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