Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 27572 invoked by uid 500); 12 Aug 2003 20:58:25 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 27512 invoked from network); 12 Aug 2003 20:58:24 -0000 Message-ID: <3F3953A5.8060104@iseran.com> Date: Tue, 12 Aug 2003 13:52:53 -0700 From: Steve Loughran User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: isDebugEnabled calls References: <4FE9AD0A3D28CE42A163544072FE86760286F00B@msgsw55cacah01.wellsfargo.com> In-Reply-To: <4FE9AD0A3D28CE42A163544072FE86760286F00B@msgsw55cacah01.wellsfargo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Eric.D.Friedman@wellsfargo.com wrote: > My profiling shows that an appreciable amount of time is spent on > isDebugEnabled calls. It's not huge, but they add up to 5 seconds of time > over 100 calls because they are invoked almost 400,000 times in over those > 100 calls. > > I'm wondering whether we couldn't adopt the policy that says debug logging > is either enabled or disabled at creation time for certain heavily used > objects, like DeserializationContextImpl. So, you'd either get debug > logging or you wouldn't, on a message by message basis. Changes won't take > effect until the next message. DeserializationContextImpl accounts for > almost all of the calls described above. > > I am, of course, volunteering to do the work. What say you? > > Eric I say that assuming people are just using static log4j config, then this is a definite performance boost. My only concern is for live tuning of production servers, those in which you suddenly want to turn on diagnostics for a bit without a restart. If the changes you make can still get picked up between messages, i.e. on a live system without a restart, then I am for it. -steve