> "Ahmed Moustafa" <> wrote in message
> news:...
>> S.A. Samokhodkin wrote:
>>> Ahmed Moustafa writes:
>>>
>>>> On a SPARC E420, SunOS 5.8, JRE 1.4.1_02 and 1G RAM, it takes more
>>>> than 10 seconds to allocate an array as
>>>>
>>>> <code>
>>>> float[][] array = new float[10000][10000];
>>>> </code>
>>>>
>>>> Is not that *very* slow?
>>>>
>>>
>>> Supposedly because of the GC.
>>> Try -Xmx > 10^8*4 + O(10^
.
>>
>> I am already using -Xms1024m -Xmx1024m. And it is the only code in
>> the test program, so why could be the GC?
Andy Flowers <> horrified us with:
> Just for sport, how long does it take to allocate an array this size
> from a C program ?
Excellent question. Perfect fault isolation.
Just remember on unix that you have /process/ size to worry about. You
know, sbrk() and all....
PS. If you wanna top post, that's fine with me, just don't do it after
others have already bottom posted. You're making a hell of a mess...