Re: cvs: php4 /ext/standard array.c basic_functions.c php_array.h
| From: | Rasmus Lerdorf | Date: | Mon, 22 Oct 2001 17:48:40 +0000 |
| Subject: | Re: cvs: php4 /ext/standard array.c basic_functions.c php_array.h | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-7923@lists.php.net to get a copy of this message | ||
> At 10:37 AM 10/22/2001 -0700, Rasmus Lerdorf wrote:
> > > I can understand the rational for such a function but we should be sure
> > > that this is exactly what we want. It's probably best to send an
> > > explanation to php-dev first and see if people have other needs too.
> >
> >There is a long way to go before 4.2. Plenty of time to change things if
> >necessary.
>
> Yeah but I'd send something about it to php-dev@ before implementing it.
> People don't always pick stuff up from the CVS.
>
>
> > > On an implementation level, I think it could be done much faster if val
> > > were reference counted and not duplicated for each array index.
> >
> >Would be faster yes, but would people expect to have every element change
> >together on them?
>
> Why would it change every element? If you don't make it a reference then it
> won't change.
Ah, I thought you meant just add a reference. ref_count 0'ing each one
would be a good idea, yes.
-Rasmus