Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF233875F for ; Wed, 7 Sep 2011 18:49:37 +0000 (UTC) Received: (qmail 54476 invoked by uid 500); 7 Sep 2011 18:49:37 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 54303 invoked by uid 500); 7 Sep 2011 18:49:36 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 54294 invoked by uid 99); 7 Sep 2011 18:49:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 18:49:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vw0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 18:49:29 +0000 Received: by vwm42 with SMTP id 42so7430464vwm.0 for ; Wed, 07 Sep 2011 11:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=vm2iPeEjZ1sd7ATUXU05kQd+umf3MNfaOwmpnmD2x0A=; b=xNpnWTkEchOoQMRl1xv0GNtD0hU3m3gbIOlGFeZ16xmdYz1SaYooT/wnAC3PEPUKEl we8pqczQrda4avRfQzEYpHdsvH7kpPAH9RkNA8x0K6Bfjz/+H8jM3spuW8xFG2imbPKr WJbN7HKTpb/m2yMYrRGgmT418ylooaivB+FaE= MIME-Version: 1.0 Received: by 10.52.96.193 with SMTP id du1mr490845vdb.206.1315421348408; Wed, 07 Sep 2011 11:49:08 -0700 (PDT) Received: by 10.52.182.5 with HTTP; Wed, 7 Sep 2011 11:49:08 -0700 (PDT) In-Reply-To: <20110907181121.4958F2388B9B@eris.apache.org> References: <20110907181121.4958F2388B9B@eris.apache.org> Date: Wed, 7 Sep 2011 22:49:08 +0400 Message-ID: Subject: Re: svn commit: r1166290 - /tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/9/7 : > Author: markt > Date: Wed Sep =A07 18:11:20 2011 > New Revision: 1166290 > > URL: http://svn.apache.org/viewvc?rev=3D1166290&view=3Drev > Log: > Add a simple annotation cache to improve performance for applications tha= t use lots of non-poolable tags. 1. I think most classes do not have annotations. If I understand correctly the code allocates new ArrayList() for each class. Maybe we can optimize for classes that do not have annotations? (E.g. using a shared instance of Collections.emptyList()). 2. I wonder when the cache is cleared. E.g. if we are in development mode or have enabled unloading unused JSPs in JspServlet configuration. If I understand correctly it accumulates references to Class objects but never releases them. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org