Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 22776 invoked from network); 6 May 2006 15:55:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2006 15:55:34 -0000 Received: (qmail 69910 invoked by uid 500); 6 May 2006 15:55:32 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 69853 invoked by uid 500); 6 May 2006 15:55:31 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 69842 invoked by uid 99); 6 May 2006 15:55:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 May 2006 08:55:31 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.38.242] (HELO web50309.mail.yahoo.com) (206.190.38.242) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 06 May 2006 08:55:31 -0700 Received: (qmail 35640 invoked by uid 60001); 6 May 2006 15:55:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=X9/m/Wn7E6l3FePigzTSgG95Q2sWfZvmIlAevE3iuAMj6FiNxQQLcRN/OzhBHwT4g8c+uU/l+75IAPa+Kp0o+RUzKtYjWpEul2XL49m4qukMsSVxKh5oWGkWUvzoHxSt53fC8oxVZA+cikxWeYbuF1dh5Eysq0tX4k/shNNNygQ= ; Message-ID: <20060506155506.35638.qmail@web50309.mail.yahoo.com> Date: Sat, 6 May 2006 08:55:06 -0700 (PDT) From: Otis Gospodnetic Reply-To: Otis Gospodnetic Subject: Re: Vector To: java-dev@lucene.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think most of Vector (or Hashtable) references are leftovers from the pre-Java Collections era, that's all. I doubt we'd be able to get much juice out of move unsynchronized Java Collections, although I'd like to see them for the same reason as Yonik. Otis ----- Original Message ---- From: Yonik Seeley To: java-dev@lucene.apache.org Sent: Saturday, May 6, 2006 6:35:03 AM Subject: Re: Vector On 5/6/06, karl wettin wrote: > There are a couple of Vector:s in the code. Is it really necessary to > use this expensive thread safe artifact from the dark ages? I've wondered that myself ... seeing "Vector" in the code does hurt my eyes a little :-) It's just one of those things that's never the highest priority I guess. I think in many/most of these places it's unnecessary to have a synchronized collection at all. For examile, the one in Document for instance will be used often: List fields = new Vector(); Since the reference type is actually "List" it looks like the use of a synchronized collection is deliberate. Can someone think why this is needed? -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org