RE: [PHP-PEAR] PHPLib and Pear merge
| From: | Chuck Hagenbuch | Date: | Wed, 07 Mar 2001 16:02:22 +0000 |
| Subject: | RE: [PHP-PEAR] PHPLib and Pear merge | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-1615@lists.php.net to get a copy of this message | ||
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:
1. use auto_prepend_file to preload whichever PEAR db driver you're using.
2. Remove the auto_prepend for phplib and manually include the db stuff, after
you've started the benchmark timing.
(obviously these shouldn't be done at the same time, but tested individually).
I'd be interested how much this changes the results.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"Live, from Washington, where the doctors were telling us what they did, and
did not, do with Vice President Cheney." -Dan Rather