[pLog-svn] r993 - plog/trunk/class/locale
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..
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
>> 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
> 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
More information about the pLog-svn