lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Garski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENENET-218) Lucene.Net.Util.TestAttributeSource.TestCloneAttributes
Date Tue, 10 Nov 2009 05:31:32 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775300#action_12775300
] 

Michael Garski commented on LUCENENET-218:
------------------------------------------

I considered using a plain List<T>, but items are keyed in the map using an instance
of System.Type.

Another approach would be to use List<T>, but make T be a private composite class consisting
of the key and the value.  In this way the List could be iterated over (or queried with LINQ
in a future release).  This would certainly be faster to implement, but as you mentioned it
would come at a cost of performance.

I'll go the route of the simplest implementation at the known cost of performance, which can
be tuned later once everything is working.

> Lucene.Net.Util.TestAttributeSource.TestCloneAttributes
> -------------------------------------------------------
>
>                 Key: LUCENENET-218
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-218
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Michael Garski
>
> The test is failing - I'm working on it :)

-- 
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