[
https://issues.apache.org/jira/browse/LUCENENET-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535351
]
stimpy77 edited comment on LUCENENET-103 at 10/16/07 2:32 PM:
---------------------------------------------------------------
I should add, the objective for cloning was to make it more performant. The
Directory copy approach was slower. For our purposes, the difference was 1299ms
for Directory.Copy, versus 669ms for a deep clone, and 9.66ms for a shallow
clone. We are going with a shallow clone because this is a multi-threaded
server and there are thread locks all over the Lucene objects, but we don't
modify a RAMDirectory once it is loaded. Rather, we rebuild the RAMDirectory in
the equivalent of a cron job.
was (Author: stimpy77):
Erm, error, in RAMFile.Clone(deep) should be if (!deep) not if (deep).
I should add, the objective for cloning was to make it more performant. The
Directory copy approach was slower. For our purposes, the difference was 1299ms
for Directory.Copy, versus 669ms for a deep clone, and 9.66ms for a shallow
clone. We are going with a shallow clone because this is a multi-threaded
server and there are thread locks all over the Lucene objects, but we don't
modify a RAMDirectory once it is loaded. Rather, we rebuild the RAMDirectory in
the equivalent of a cron job.
> Need to implement ICloneable on RAMDirectory
> --------------------------------------------
>
> Key: LUCENENET-103
> URL: https://issues.apache.org/jira/browse/LUCENENET-103
> Project: Lucene.Net
> Issue Type: Improvement
> Environment: C# 2.0
> Reporter: Jon Davis
> Priority: Minor
>
> IClonable needs to be added to Lucene.net's RAMDirectory.
> See Lucene (Java) item resolution at:
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg03725.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.