RE: [PHP-PEAR] PHPLib and Pear merge
| From: | Christian Stocker | Date: | Wed, 07 Mar 2001 16:17:34 +0000 |
| Subject: | RE: [PHP-PEAR] PHPLib and Pear merge | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1622@lists.php.net to get a copy of this message | ||
On Wed, 7 Mar 2001, Chuck Hagenbuch wrote:
> Quoting Christian Stocker <chregu@nomad.ch>:
>
> > as you can see, the connect-function in pear-DB is really time-consuming.
> > we should investigate in that.
>
> Here's a theory: I assume you're using auto_prepend_file for phplib? If so, the
> benchmark for phplib probably starts _after_ you've included the db driver. So,
> why don't you try two things:
no, i don't have a prepend file for this benchmark.
i load the phplib stuff after i started the timer with
$prependPath = "/home/iba/php/phplib/prepend.php3";
include_once($prependPath);
and prepend.php3 includes
---
require($_PHPLIB["libdir"] . "mysql.inc");
require("./incl/local.inc");
---
and local.inc, i defined just
db_IBA extend extends DB_sql { var stuff... }
> 1. use auto_prepend_file to preload whichever PEAR db driver you're using.
doesn't make it faster... if i include it in the script directly or in the
auto_prepend.file. i don't see the difference
chregu
--
>> NOMAD MEDIA CORPORATION AG
>> christian stocker >> e-mail: chregu@nomad.ch
>> schöneggstrasse 5 >> mobile: +41 76 561 88 60
>> ch-8004 zürich >> office: +41 1 240 23 04
>> web: http://www.nomad.ch >> fax : +41 1 240
23 71