[pLog-svn] A terrible truth about plugin

Mark Wu markplace at gmail.com
Fri Feb 1 14:46:39 EST 2008


For my #1 test , my anti virus program still turned on. It really annoying. 

For #2 test, I just turned it off...

The anti virus program is kaspersky internet suite 7.0 ...

that's why there are 300ms difference between #1 and #2 test.

Back to to result, I think it quite intresting.....

Because we did not use page cache in admin page and only use smarty compiler
cache and DAO cache....

So, If our user add a lot of plugins, they will feel lifetype getting very
slow, especially in a heavy traffic site.

 It might help to get the plugin menu entries put into menu.xml and put the
plugin locales into core locale files..... they just save at least 200ms in
each request. Not bad :)

For index page, I think it is not a serious problem, because we have a very
good page cache here.

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Saturday, February 02, 2008 3:37 AM
> To: LifeType Developer List
> Subject: Re: [pLog-svn] A terrible truth about plugin
> 
>  	I see.  And I downloaded a google load calculator and 
> now I can see the longer delays - it is funny that it doesn't 
> feel that long.
>  	The 700 to 1000 difference in your #1 test, those are 
> the same data points, ie. there is a variation of 300 ms in 
> your tests?
> 
> On Sat, 2 Feb 2008, Mark Wu wrote:
> > I forgot put the number about remove menu entries, so here comes 
> > another test (editPosts page), this time I disable my anti 
> virus program.
> >
> > 1. core + 14 plugins(8 plugin with menu entries) :700ms 2. 
> core + 14 
> > plugins(remove menu entries in scripts): 530ms 3. core + 14 
> > plugins(remove menu entries in scripts, also remove locales):
> > 500ms
> > 4. core only: 410ms
> >
> > These number are average numbers, I remove some very big and very 
> > small numbers......
> >
> > BTW, I use xdebug to do trace the profiling, and use 
> wincachegrind to 
> > view these results...
> >
> > Mark
> >
> >> -----Original Message-----
> >> From: plog-svn-bounces at devel.lifetype.net
> >> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> >> Sent: Saturday, February 02, 2008 3:02 AM
> >> To: LifeType Developer List
> >> Subject: Re: [pLog-svn] A terrible truth about plugin
> >>
> >> On Sat, 2 Feb 2008, Mark Wu wrote:
> >>> After several testing, I think I know why our plugin is so slow...
> >>  	Had you noticed that plugins were slow?  I guess I 
> haven't ever had 
> >> 14 plugins installed before, but maybe only 5 or 6.
> >>
> >>> For 2nd problem, maybe we can use include() only,
> >>  	That seems fine - does that have any side effects?  The include 
> >> would simply overwrite the prior values if they existed, right?
> >>
> >>>> 1. LifeType core + 14 plugins (8 with xml menu entries setting) :
> >>>> 1000 ms
> >>> 2. (1) and remove all locale files : 900ms
> >>  	This doesn't seem like that much of an issue?  You are 
> saying it 
> >> takes 100 ms?  Where are these numbers coming from?
> >>  I can't find the time extension I used to have, but firebug says 
> >> admin.php takes almost no time to load, and the delays for 
> me are all 
> >> the css and js.
> >>
> >>> 3. (1) and remove all plugins: 550ms
> >>  	This number looks more interesting, and is probably the 
> harder of 
> >> the two to fix.  Can you test your include theory and see how much 
> >> that changes things?
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://limedaley.com/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
> 
> --
> Jon Daley
> http://jon.limedaley.com/
> 
> Unix is to computer software what Shakespeare is to literature -
>    rich, deep and potent, but sometimes hard to fathom.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
> 



More information about the pLog-svn mailing list