lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Davis (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LUCENENET-103) Need to implement ICloneable on RAMDirectory
Date Tue, 16 Oct 2007 21:32:50 GMT

    [ 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/lucene-dev@jakarta.apache.org/msg03725.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message