Re: Performance Hints?
| From: | Jason Brooke | Date: | Wed, 26 Jul 2000 03:11:26 +0000 |
| Subject: | Re: Performance Hints? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8195@lists.php.net to get a copy of this message | ||
Holy smoke! 46 included files with 32000 lines of code in a web page?!
You're not a former Microsoft programmer are you? ;)
There's a couple of things to spring to my mind when I read your email
- your system taking half a second to open 46 files off the disk has very
little to do with php
- it sounds like your application would still be slow (for a web app) even
if it was written in C
- can you possibly cut down on what you're including, or at least
conditionally?
- any insanity is not due to your language choice in this case, but possibly
more to what you're trying to do on a per-page view basis :)
jason
> Hi,
>
> I'm having *major* performance problems with a very large web
> application, and was wondering if anyone could be kind enough to
> offer a few suggestions...
>
> I'm finding that a *huge* bottleneck is just parsing the PHP code,
> before it even gets executed. I have a test page that includes
> several files, and many of the included files include other files.
> In total, I have 46 files being included in a page with a total of
> 32,000 lines of code. Just including these files (before even
> executing the code) is taking at least .5 seconds. Note that this
> time does not include the execution of any code, it's just including
> class definitions, etc., to be used later in the page.
>
> We have been using PHP 3, but are just now starting to experiment
> with PHP 4 in hopes that it will help. But there is no noticable
> difference thus far. Any hints??? Am I insane for having such a
> large project in PHP?
>
> Any advice would be welcome.
>
> Thanks!!!
>
> John