This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 1d4777c73ed7a25a45f8d882605cdf80e781c47c
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Jul 17 12:37:16 2020 +0700

    Lucene.Net.TestFramework.Util.Fst.FSTTester: Use SCG Ditionary for better 
performance
---
 src/Lucene.Net.TestFramework/Util/Fst/FSTTester.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.TestFramework/Util/Fst/FSTTester.cs 
b/src/Lucene.Net.TestFramework/Util/Fst/FSTTester.cs
index 8db4255..333f253 100644
--- a/src/Lucene.Net.TestFramework/Util/Fst/FSTTester.cs
+++ b/src/Lucene.Net.TestFramework/Util/Fst/FSTTester.cs
@@ -822,7 +822,9 @@ namespace Lucene.Net.Util.Fst
             //System.out.println("TEST: tally prefixes");
 
             // build all prefixes
-            IDictionary<Int32sRef, CountMinOutput<T>> prefixes = new 
JCG.Dictionary<Int32sRef, CountMinOutput<T>>();
+
+            // LUCENENET: We don't want to use a J2N dictionary here because 
of performance
+            IDictionary<Int32sRef, CountMinOutput<T>> prefixes = new 
Dictionary<Int32sRef, CountMinOutput<T>>();
             Int32sRef scratch = new Int32sRef(10);
             foreach (InputOutput<T> pair in pairs)
             {

Reply via email to