Re: Associative arrays and case sensitivity

From: Date: Thu, 13 Sep 2001 09:52:08 +0000
Subject: Re: Associative arrays and case sensitivity
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1896@lists.php.net to get a copy of this message
How did you do lowercasing? I'm going to write a new php function (something like array_lowercase_keys) and would like to compare the results. Edin ----- Original Message ----- From: "Tomas V.V.Cox" <cox@idecnet.com> To: "Chuck Hagenbuch" <chuck@horde.org> Cc: <pear-dev@lists.php.net> Sent: Thursday, September 13, 2001 12:36 AM Subject: Re: [PEAR-DEV] Associative arrays and case sensitivity > Chuck Hagenbuch wrote: > > > > > >(i.e., always lowercasing column names > > _does_ lose performance) > > > > Just for curious I did some benchmarks about this topic. The task of > uppercasing column names over 10.000 rows, results in a loose of speed > from more than 100%. > > 9.302022 s. (without casing) against 20.920656 s. (uppercasing) > > Seems that key renaming with PHP is a very expensive task. > > > Tomas V.V.Cox > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net > For additional commands, e-mail: pear-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.pear.dev (#1896) next »