Let us know what you find out. I would guess that the gains are not going to be that spectacular. Creating and deleting files should be "cheap" operations in a modern OS. Mainly when you compare these to the costs of openning a new index and populating various caches. But let us know what you find.
Regards, Dror On Mon, Dec 01, 2003 at 02:40:36PM -0800, Kevin A. Burton wrote: > Dror Matalon wrote: > > >>I would assume that removing this lock could increase performance > >>especially to allow multiple concurrent searches on the same data. > >> > >> > > > >There was talk about providing that in an upcoming version. Until then > >you can try RODirectory: > > http://www.csita.unige.it/software/free/lucene/ > > > > > Looking at the source of FSDirectory it seem easy enough to add a > property to disable indexes. > > This way if you wanted to search a directory and you new it was 100% > necessary to search it readonly you could go ahead and do it without > having to write lock files. > > I will write some unit tests to see what the performance is here. It > should be trivial to create an index of a few hundred megs and then run > about 200k queries across it with 30 threads or so... then disable locks > and see what the total time spent was... > > If it's substantial I think it makes sense to make this contribution :) > > Kevin > > -- > NewsMonster - http://www.newsmonster.org/ > > Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965 > AIM - sfburtonator, Web - http://www.peerfear.org/ > GPG fingerprint: 4D20 40A0 C734 307E C7B4 DCAA 0303 3AC5 BD9D 7C4D > IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster > -- Dror Matalon Zapatec Inc 1700 MLK Way Berkeley, CA 94709 http://www.fastbuzz.com http://www.zapatec.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
