You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/07/21 09:48:44 UTC
[lucenenet] 10/24: Lucene.Net.TestFramework.Util.Fst.FSTTester: Use
SCG Ditionary for better performance
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 <sh...@shadstorhaug.com>
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)
{