[ https://issues.apache.org/jira/browse/LUCENE-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418498#comment-13418498 ]
Uwe Schindler commented on LUCENE-3659: --------------------------------------- Hi, I will soon work again on that. I have some comments: - We can remove the heavy synchronization bottleneck on RAMFile. RAMFile should only have final fields and should be created after the file is written., This should improve performance alltogether. The current synchronization is needed to "emulate" real file system behaviour (file is visible in directory with 0 bytes once created). This behaviour is not needed at all by Lucene. We should make the file visible in the ConcurrentHashMap of RAMDirectory once the IndexOutput is closed! We should create the RAMFile instance on this stage not before (so all is final). By this all sync on RAMFile can be removed. - We should add IOContext.META - Maybe we should rename RAMDirectory in trunk / 4.x to HeapDirectory. So we can have other impls like DirectBufferDirectory or whatever (see Shay Bannon's LUCENE-2292) > Allow per-RAMFile buffer sizes based on IOContext and source of data (e.g. > copy from another directory) > ------------------------------------------------------------------------------------------------------- > > Key: LUCENE-3659 > URL: https://issues.apache.org/jira/browse/LUCENE-3659 > Project: Lucene - Java > Issue Type: Sub-task > Affects Versions: 4.0-ALPHA > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Fix For: 4.1 > > Attachments: LUCENE-3659.patch, LUCENE-3659.patch, LUCENE-3659.patch > > > Spinoff from several dev@lao issues: > - > [http://mail-archives.apache.org/mod_mbox/lucene-dev/201112.mbox/%3C001001ccbf1c%2471845830%24548d0890%24%40thetaphi.de%3E] > - issue LUCENE-3653 > The use cases for RAMDirectory are very limited and to prevent users from > using it for e.g. loading a 50 Gigabyte index from a file on disk, we should > improve the javadocs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org