I'm glad you mentioned this, Jack. You're right- it seems
like the most
obvious thing in the world, but somehow it's easy to look
over these
kinds of details.
Ralph has already created a portion of the wiki for
performance
discussions and tips in preparation for the performance
audit. Can you
please add a child page here with the tip and a brief (will
be easy for
this one) explanation of why this works, any pros/cons,
etc.:
http://framework.zend.com/wiki/display/ZFDEV/Perfo
rmance+of+ZF
Thanks!
,Wil
> -----Original Message-----
> From: Jack Sleight [mailto:jack.sleight gmail.com]
> Sent: Friday, May 30, 2008 4:00 AM
> To: Zend Framework General
> Subject: [fw-general] Include Path Order
>
> Hi,
> I just found a good way to speed up the
loading/response time of my
> application, that I've not seen mentioned here before,
so thought I'd
> share it for anyone who (like me) didn't realise this
would make such
a
> difference.
>
> If you have multiple include paths (ie. ZF, and perhaps
a couple of
> custom libraries), you should ensure that the paths are
in order of
how
> many classes you intend to include (most first).
>
> I know, it's blindingly obvious, but I'd just never
given it much
> thought before.
>
> I went from:
> '.';CUSTOM1;CUSTOM2;ZF
>
> To:
> ZF;CUSTOM1;CUSTOM2;'.'
>
> And saw the average response time drop from around
350ms to 250ms.
> --
> Jack
|