According to this article, Each array element consumes a minimum of 24 bytes. Your 4.5 Gigs of memory will accommodate a maximum of 185,834 elements.
Respectfully, I think you are out by a factor of 1000 (or 1024) here. Should it not be around 185 million elements?
In reply to Re^2: memory use array vs ref to array
by hippo
in thread memory use array vs ref to array
by dkhosla1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |