[pLog-svn] r993 - plog/trunk/class/locale
phunkphorce at gmail.com
Tue Feb 8 14:28:18 GMT 2005
what do these figures mean? Do they mean that 18% of the time is spent
in Object->Object(), 20% of the time in Logger->debug and so on?
I wouldn't worry too much about the logging, as I said it will be
disabled as soon as we reach a final status... In fact, I could
already remove most of the stuff that's being logged because it's
Regarding Articles::getBlogArticles(), it is indeed a heavy function.
It loads a shitload of data (custom fields, articles, blogs, blog
settings, locales, multiple categories, etc, etc. You know the dril!)
On Tue, 08 Feb 2005 15:14:17 +0100, Benjamin Krause <ork at orkland.de> wrote:
> dammit.. the logger is killing me .. 20% of my CPU time is just for
> logging :) 7% alone for formatting the PatternLayout ..
> and there are more then just 100 str_replace calls.. :(
> Just in case you're interessted .. these values are cumulative..
> 100% main
> 57% Controller->process
> 32% DefaultView->render
> 23% PluginBase
> 20% Logger->debug
> 18% Object->Object
> 15% Articles->getBlogArticles
> 12% Smarty (wow, just 12%)
> again.. don't try to count the 100% :)
> this was done with my dummy blog.. having just 2 posts and 4 comments ..
> maybe someone got a big db for me so i can recheck with larger amounts
> of data ..
> Benjamin Krause wrote:
> > ork at devel.plogworld.net wrote:
> >> Author: ork
> >> Date: 2005-02-08 12:41:06 +0000 (Tue, 08 Feb 2005)
> >> New Revision: 993
> >> Modified:
> >> plog/trunk/class/locale/locale.class.php
> >> Log:
> >> added check if str_replace is really needed.. we reduced the number of
> >> calls for str_replace from 1300 (!) to about 100 .. the other
> >> str_replace comes from PatternLayout, i'll take a look there
> >> too..
> > i'm not sure about the logger.. the format is hardcoded in
> > logging.properties.php and i'm not sure what kind of logging the final
> > will have.
> > currently we could just save a couple of calls.. not really worth
> > mentioning .. if you plan to have a reduced logging (e.g. less complex
> > log format) in the final, it would be worth adding a few extra lines to
> > check if the str_replace is needed or not ..
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.plogworld.net
> > http://devel.plogworld.net/mailman/listinfo/plog-svn
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
More information about the pLog-svn