Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 54949 invoked from network); 4 Feb 2003 11:31:39 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Feb 2003 11:31:39 -0000 Received: (qmail 23823 invoked by uid 97); 4 Feb 2003 11:33:05 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 23816 invoked from network); 4 Feb 2003 11:33:05 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 4 Feb 2003 11:33:05 -0000 Received: (qmail 53444 invoked by uid 500); 4 Feb 2003 11:31:19 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 53433 invoked from network); 4 Feb 2003 11:31:19 -0000 Received: from wall.ritterdosreis.br (HELO phoenix.ritterdosreis.br) (200.198.106.115) by daedalus.apache.org with SMTP; 4 Feb 2003 11:31:19 -0000 Received: from desenv1.ritterdosreis.br (cardinal.ritterdosreis.br [192.168.1.3]) by phoenix.ritterdosreis.br (Postfix) with ESMTP id DD29439C4B6 for ; Tue, 4 Feb 2003 09:28:37 -0200 (BRST) Subject: RE: Object pooling (was: more about custam tag life cycle) From: Felipe Schnack To: Tomcat Users List In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) Date: 04 Feb 2003 09:31:25 -0200 Message-Id: <1044358285.4504.4.camel@desenv1.ritterdosreis.br> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > I prefer to use pooled objects either for relative small number of > long lived objects or for objects that are expensive to create, or=20 > immutable objects that consume some memory and are likely to be in=20 > use concurrently. And what you think about objects that are created millions of times and pratically do not change any of its properties? I have some objects that deal with database queries (I store my SQL queries in a XML file... long story), so I have one of these objects created for each query executed in my database... I was thinking about pooling these guys, but I'm not sure. --=20 Felipe Schnack Analista de Sistemas felipes@ritterdosreis.br Cel.: (51)91287530 Linux Counter #281893 Centro Universit=E1rio Ritter dos Reis http://www.ritterdosreis.br ritter@ritterdosreis.br Fone/Fax.: (51)32303341 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org