On 12/3/06, Bill Jones <[EMAIL PROTECTED]> wrote:
On 12/3/06, kyle cronan <[EMAIL PROTECTED]> wrote:
> (1<<$ARGV[0])

Just a thought -

The argument you are passing is really the two's complement; so you
are really passing 256M (not 28) to the vec statement.

So what you're saying is I should be using C!  ;)  Yeah, I'm
implementing a lossy hash table and I want to create an array of 2^30
integers in my program, so this is correct.  I was able to get it to
work by using an array of 16 strings of length 2^26, then indexing
into that array as well as into the vector there.

But I'm still wondering why this would happen?  After all, the machine
has 16GB of ram.

Kyle
<[EMAIL PROTECTED]>

--
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to