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 d537d7a523a1ce1cca834f00e0e453a2f532b3e0
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Jul 17 11:56:00 2020 +0700

    Lucene.Net.Support.Collections: Reduced memory allocations of 
CaseInsensitiveComparer in ReverseOrder<T>() method
---
 src/Lucene.Net/Support/Collections.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Lucene.Net/Support/Collections.cs 
b/src/Lucene.Net/Support/Collections.cs
index a4c2f95..c207eb0 100644
--- a/src/Lucene.Net/Support/Collections.cs
+++ b/src/Lucene.Net/Support/Collections.cs
@@ -248,7 +248,7 @@ namespace Lucene.Net.Support
 
             public int Compare(T x, T y)
             {
-                return (new CaseInsensitiveComparer()).Compare(y, x);
+                return CaseInsensitiveComparer.Default.Compare(y, x);
             }
         }
 

Reply via email to