RE: [PHP-PEAR] PHPLib and Pear merge

[email protected] (Christian Stocker) Wed, 7 Mar 2001 17:17:34 +0100 (CET)
Newsgroups php.pear
Organization Nomad Online Agents
Message-ID <[email protected]>
On Wed, 7 Mar 2001, Chuck Hagenbuch wrote:

> Quoting Christian Stocker <[email protected]>:
>
> > 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: [email protected]
>> 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