From: Ralph Shnelvar Date: 2009-11-11T00:13:23+09:00 Subject: Re: Good or best way to allocate a large array Florian, FG> The thing is that an Array of size (300_000*20) already has as many FG> slots for references. So it's not "initializing references". It just FG> makes every field of the Array referencing that one BigNum. There is FG> no allocation or initialization happening in this step. There has to be initialization, doesn't there? irb(main):001:0> a=Array.new(10) => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] irb(main):002:0> a[5] => nil -- Best regards, Ralph mailto:ralphs@dos32.com