Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 58010 invoked from network); 14 Jun 2004 18:44:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jun 2004 18:44:45 -0000 Received: (qmail 38359 invoked by uid 500); 14 Jun 2004 18:44:56 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 38242 invoked by uid 500); 14 Jun 2004 18:44:54 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 37977 invoked by uid 99); 14 Jun 2004 18:44:52 -0000 Received: from [66.199.152.34] (HELO kgb07.kgbinternet.com) (66.199.152.34) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 14 Jun 2004 11:44:52 -0700 Received: from [158.72.79.62] ([158.72.79.62]) (authenticated bits=0) by kgb07.kgbinternet.com (8.12.8/8.12.8) with ESMTP id i5EIXTrx014066 for ; Mon, 14 Jun 2004 12:33:30 -0600 Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <44485.10.0.0.5.1087237423.squirrel@10.0.0.5> References: <9218F1F6-BE2E-11D8-86DC-000D93ADF212@codepuccino.com> <44485.10.0.0.5.1087237423.squirrel@10.0.0.5> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5DE7E32C-BE31-11D8-86DC-000D93ADF212@codepuccino.com> Content-Transfer-Encoding: 7bit From: Robert Sfeir Subject: Re: Vector use Date: Mon, 14 Jun 2004 14:33:44 -0400 To: "OJB Developers List" X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I guess what bugs me the most about Vector is that it's synchronized, and while I am not extremely familiar with the code, there are some spots which look like we don't need synchronization, and we could benefit from the added performance. The other thing is that since Vector has been retrofitted to implement Collection, when we have a line like: private Vector foo = new Vector(); wouldn't it be better to use something like: private List foo = new Vector(); or private Collection foo = new Vector(); (Depending on the purpose of course being listed v/s non discriminatory) which should allow us to support people using 1.2 + in any case, then we can change our implementation underneath as we go forward and not affect the code. We can apply changes to the impl as we properly determine sync need v/s none, and choose a better Collection when we see the need. Thoughts? R On Jun 14, 2004, at 2:23 PM, Antonio Gallardo wrote: > Robert Sfeir dijo: >> I've been wondering about the use of Vector and Hashtable in OJB. Are >> they there because we support older JDKs or is it because it's just >> what was there when OJB was first developed? Vector and Hashtables >> are >> deprecated, and newer Collections are just more efficient. >> >> I don't mind going through weeding them out, but if we intend to >> support JDK 1.2 and before then there is no sense in doing that. Is >> there a large group of OJB users using JDK 1.2- ? > > I think today no one is using java 1.2 (correct me if I am wrong). As > you > pointed before, it is because historic reasons. Perhaps we can change > to > collections onces we release the 1.0. > > We can set J2SDK 1.3 as the minimum requirement for OJB 1.1 and later. > That way we can switch to collections. Also there are a lot of > interesting > classes in commons-collections and we can take advantage of them! > > WDYT? > > BTW, I am waiting for the end of the month to receive this interesting > book: > > Pro Jakarta Commons by Harshad Oak, ISBN: 1590592832 > http://www.amazon.com/exec/obidos/tg/detail/-/1590592832/ > > I hope this book will be very interesting one. > > Best Regards, > > Antonio Gallardo > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org