Re: Modularity--Optimizing Includes and Libs
| From: | Tamas Arpad | Date: | Thu, 20 Sep 2001 13:04:22 +0000 |
| Subject: | Re: Modularity--Optimizing Includes and Libs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67979@lists.php.net to get a copy of this message | ||
Hi,
I have the same problem. We have a fairly complex and huge system
with many functions/features in it with 1,6Mb of plain php code
(without desing). For page generation usually one half (or third
maybe) of the code is needed. I found that php parses and complies
the code in 0.6secs (without any function call except require_once-s
one page generation takes 0.6-0.62secs). So is there a way to make it
faster (of course except the trivial "cut the code into more smaller
files", and "the you should have made it in a compiled language"
sollution :)))
Thanks,
Arpi
>
> I have a question regarding includes and writing
> library modules in PHP.
>
> In one of the replies to my previous e-mail,I was told
> that PHP parses/compiles pages everytime a new request
> comes in. So, does this mean we have to minimize the
> amount of code per page (which also means to minimize
> number of includes) to improve response time? I mean,
[...]