Re: limit to elements in an array?
| From: | Robert Cummings | Date: | Fri, 24 Oct 2003 15:40:57 +0000 |
| Subject: | Re: limit to elements in an array? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167442@lists.php.net to get a copy of this message | ||
On Fri, 2003-10-24 at 04:48, Ian Truelsen wrote:
> Is there an upper limit to the number of elements that can be in an
> array? If so, what is that limit?
I think it is only limitted by your computer's memory or the size of a
long integer (2.4 billion or so). I did a test one day to see just how
much a lookup into a configuration array would cost, and it was
negligible both for loading time and access time on a 10000 entry array.
Load time increases a bit on a 1 million entry array, but lookup was
still extremely fast, which is fairly expected with any decent unique
key lookup implementation.
Cheers,
ROb.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'