Re: BIG include file !!!
| From: | Carsten Gehling | Date: | Thu, 11 Jan 2001 10:55:46 +0000 |
| Subject: | Re: BIG include file !!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33955@lists.php.net to get a copy of this message | ||
Sent: Wednesday, January 10, 2001 11:17 PM
> > As I am working I am taking more and more of the code out and
> > putting it into functions straight into the include file. This
> > file is included on almost every page and I am worried that it
> > is going to slow the pages down. Will it have a large effect
> > on the pages speed. It's only about 400 lines at the moment
> > but getting bigger the way I am working
> >
> > Is it likely to slow the pages much even if only some of the
> > functions are called from particular pages.
You could split the one big include file into several smaller
conceptual-based include files. Ie. put related functions together in small
groups and then only include the files containing the functions you need.
- Carsten