lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Davis (JIRA)" <>
Subject [jira] Commented: (LUCENENET-103) Need to implement ICloneable on RAMDirectory
Date Tue, 16 Oct 2007 21:29:50 GMT


Jon Davis commented on LUCENENET-103:

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:
>             Project: Lucene.Net
>          Issue Type: Improvement
>         Environment: C# 2.0
>            Reporter: Jon Davis
>            Priority: Minor
> IClonable needs to be added to's RAMDirectory.
> See Lucene (Java) item resolution at: 

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

View raw message