Acknowledged. But IMO the arrays will be either clearly continous or
clearly associative/non-continous in 99.2% of the cases (Zeev
statistics applied). I think it's fine to keep treating an array as
non-continous if there has ever been holes or string keys in it.
- Stig
[Zeev Suraski <[EMAIL PROTECTED]>]
> It doesn't necessarily mean having to scrap the whole idea, just that
> we'd actually have to count elements, instead of just flagging. I'll
> try to think if there are any problems with this approach.
>
> Zeev
>
> At 02:57 15/5/2001, Andrei Zmievski wrote:
> >At 02:51 AM 5/15/01 +0300, Zeev Suraski wrote:
> >> Ok, if we humor ourselves with this feature... What kind of
> >> behavior would you expect if a key gets deleted, and there are no
> >> longer associative members in the array?
> >
> > Good point... any time savings on the extension side would be
> > negated if the engine had to check whether the array is fully
> > associative on each operation.
> >
> >-Andrei
>
> --
> Zeev Suraski <[EMAIL PROTECTED]>
> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
>
--
Stig Sæther Bakken <[EMAIL PROTECTED]>
Fast Search & Transfer ASA, Trondheim, Norway
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]