Re: AW: AW: [PHP-DEV] arrays

From: Date: Wed, 16 May 2001 10:34:46 +0000
Subject: Re: AW: AW: [PHP-DEV] arrays
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-55462@lists.php.net to get a copy of this message
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 <zeev@zend.com>] > 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 <zeev@zend.com> > CTO & co-founder, Zend Technologies Ltd. > http://www.zend.com/ > -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.dev (#55462) next »