lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <>
Subject Vector
Date Sat, 06 May 2006 06:29:17 GMT
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:
For additional commands, e-mail:

View raw message