lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Toper <nto...@jouve.fr>
Subject Re: Vector -> LinkedList for performance reasons...
Date Wed, 21 Jan 2004 15:50:48 GMT
Hi,
I'd like to help working on improving Lucene. How can I help?
Le Mercredi 21 Janvier 2004 16:38, Doug Cutting a écrit :
> Francesco Bellomi wrote:
> > I agree that synchronization in Vector is a waste of time if it isn't
> > required,
>
> It would be interesting to see if such synchronization actually impairs
> overall performance significantly.  This would be fairly simple to test.
>
> > but I'm not sure if LinkedList is a better (faster) choice than
> > ArrayList.
>
> Correct.  ArrayList is the substitute for Vector.  One could also try
> replacing Hashtable with HashMap in many places.
>
>  > I think only a profiler could tell.
>
> I wouldn't trust a profiler for this.  Rather, I'd perform benchmarks
> before and after the change will best show real performance.  A
> substantial indexing benchmark and some search benchmarks, searching
> fairly large indexes would be good.
>
> My hunch is that the speedup will not be significant.  Synchronization
> costs in modern JVMs are very small when there is no contention.  But
> only measurement can say for sure.
>
> Doug
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message