[pLog-svn] r993 - plog/trunk/class/locale

Benjamin Krause ork at orkland.de
Tue Feb 8 14:14:17 GMT 2005


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




More information about the pLog-svn mailing list