f77coder has asked for the wisdom of the Perl Monks concerning the following question:
I did search but maybe didn't use the correct terms. How does perl without using an external lib handle arrays that have huge indices of type UInt?
Most compilers seem to optimize around Int which seems like a huge waste of memory, having to use a size_t greater than what is needed, IMHO.
example
i have an array of chr's or UInt8's (pick your data type) but the indicies are UInt64 -1 > index > Int64
On a fully 64-bit OS,how would or does perl 5.2x handle this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: internal size of array indices limit?
by Corion (Patriarch) on Mar 16, 2017 at 20:41 UTC | |
by f77coder (Beadle) on Mar 16, 2017 at 20:49 UTC | |
|
Re: internal size of array indices limit?
by LanX (Saint) on Mar 16, 2017 at 20:53 UTC |