: If this really turns to be related to having many files in the index
: dir, could we maintain SEGMENTS_N files in a sub-directory..?
I haven't done much experimenting / performance testing of File
operations in Java, but just from looking at the java1.4.2 javadocs it
seems like it *might* be possible to make the FindSegmentsFile class
faster if line 504 (of SegmentInfos.java r518529) used a FilenameFilter.
I say might because:
1) i have no idea how Java uses the filter udner the covers when dealing
with the filesystem .. worst case it would help keep the array size
down.
2) it's not immediately clear to me if that code path is ever used ... i
suspect most clients are using the lucene Directory constructor and
not the java.io.File constructor ... Directory.list does not support
FilenameFilters. so we can't try the same thing on that code path
with making some other changes.
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]