[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Large vector
From: |
Mark Voortman |
Subject: |
Re: [Chicken-users] Large vector |
Date: |
Thu, 10 May 2007 20:19:56 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.9a |
John,
Thanks for your reply. However, according to my calculator 2^30 is
1,073,741,824 which should be more than enough. Where did all the space
go? I also thought about a vector of vectors but I'd like to keep it
simple, if possible. A 64 bit machine is not an option at the moment.
Cheers,
Mark
> Mark Voortman scripsit:
>
>> I have an urgent need to create a vector with a capacity of over 100
>> million elements. However, I get an out of range exception when I call
>> make-array since the numbers of elements is limited to 16777215. Where
>> can
>> I increase this limit?
>
> The simplest way is to move to a 64-bit computer, where the limit is
> 2^62 rather than 2^30. Failing that, you can use a vector of
> vectors and write your own (trivial) getter and setter procedures.
>
> --
> Yes, chili in the eye is bad, but so is your John Cowan
> ear. However, I would suggest you wash your address@hidden
> hands thoroughly before going to the toilet. http://www.ccil.org/~cowan
> --gadicath
>