|
Posted by Juliette on 09/14/06 05:13
ngocviet wrote:
> Sorry for the noob question!
> My project have alot class files(>100), in one request I only need some
> class(1-5), but I dont like to have to specifies needed files so I make
> a include.php, that include all my class files.
>
> In action file, I only include the include.php! Is it good for
> performent? Does it make any problem?
>
> Thanks!
>
Including 100+ files while you only need 5 will always hurt your
performance. Includes are slow.
Even so, it shouldn't necessarily be a problem unless you run over the
maximum execution time limit.
Just keep in mind that users who have to wait a lot, may not stay for long.
Navigation:
[Reply to this message]
|