lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Vector
Date Sat, 06 May 2006 07:28:29 GMT
+1

Does anyone have any numbers on the performance differences on such a  
refactoring?  I reckon it wouldn't be that hard to put together a  
reasonably representative dataset and test before/after.  Who's game?

	Erik - the new dad (again :)!


On May 6, 2006, at 2:29 AM, 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?
>
> What I really don't get is the need for it in the index package as
> IndexWriter already is synchronized. And how often do you modify the
> clauses of a BooleanQuery from multiple threads?!
>
> Even Sun recommends Collection.synchronizedList over Vector when  
> thread
> safty is an issue.
>
> I belive that replaced with Linked- and ArrayLists it could save a  
> whole
> bunch of ticks at heavy load.
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message