List Info

Thread: Include Path Order




Include Path Order
user name
2008-05-30 05:59:43
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

RE: Include Path Order
user name
2008-05-31 04:20:03
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.sleightgmail.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

Re: Include Path Order
user name
2008-05-31 04:34:56
Hi Wil,
Sure no problem, will do.

Wil Sinclair wrote:
us-ex1.zend.net" type="cite">
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/Performance+of+ZF

Thanks!
,Wil

  
a
  
how
  

--
Jack
Re: Include Path Order
user name
2008-05-31 04:56:45
Page added: http://framework.zend.com/wiki/display/ZFDEV/Performance+-+Multiple+Include+Path+Order

Wil Sinclair wrote:
us-ex1.zend.net" type="cite">
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/Performance+of+ZF

Thanks!
,Wil

  
a
  
how
  

--
Jack
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )