Re: cvs: phpweb /include manual-lookup.inc

From: Date: Wed, 14 May 2003 18:00:37 +0000
Subject: Re: cvs: phpweb /include manual-lookup.inc
References: 1 2 3  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17651@lists.php.net to get a copy of this message
This is still much better than triggering so many syscalls; the next thing to optimize is the actual manual pages themselves before trying to optimize this particular function any more than it is already.
+ $langs = ($lang != 'en') ? + array(sqlite_escape_string($lang), 'en') : + array('en'); - if ($lang != 'en') { - $langs = array(sqlite_escape_string($lang), 'en'); - } else { - $langs = array('en'); - } foreach ($langs as $lang) {
Are there any plans to support more langs here? Iterating through a one-element array does not seem to be too efficient for me, given your fine speed increase improvements.
OK but why to have an array which will only have one element in any case??? Goba

« previous php.mirrors (#17651) next »