RE: [PHP-PEAR] PHPLib and Pear merge
[email protected] (Chuck Hagenbuch) Wed, 7 Mar 2001 11:02:22 -0500
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
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: 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, <[email protected]> "Live, from Washington, where the doctors were telling us what they did, and did not, do with Vice President Cheney." -Dan Rather