in reply to 2GB limit to vecs
I32 is perl type alias for 32 bit signed integers.Perl_do_vecget(pTHX_ SV *sv, I32 offset, I32 size)
I don't know if there is any reason to be using I32 for indexes instead of IVs (native ints or bigger). Vectors are not the unique data structure with that limitation, the I32 type is used pervasively inside perl code for index values, for instance, arrays or substr also use 32 bit indexes.
The work around is to create your own XS vector module with support for 64bit indexes, but anyway, fill a bug report with perlbug, and it may be fixed for 5.12!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 2GB limit to vecs
by Anonymous Monk on Jun 20, 2008 at 09:25 UTC | |
by salva (Canon) on Jun 20, 2008 at 09:53 UTC | |
by Anonymous Monk on Jun 22, 2008 at 11:20 UTC |