lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [20/27] lucenenet git commit: Lucene.Net.Core.Util.FieldCacheSanityChecker refactor: using CopyTo instead of ToArray() to move data into pre-initialized array more efficiently
Date Sun, 05 Feb 2017 16:51:55 GMT
Lucene.Net.Core.Util.FieldCacheSanityChecker refactor: using CopyTo instead of ToArray() to
move data into pre-initialized array more efficiently


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/460e55e7
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/460e55e7
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/460e55e7

Branch: refs/heads/api-work
Commit: 460e55e77e2470d92d7f21691540e5bbfd9b8b3d
Parents: 6d6df6c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Feb 5 18:09:22 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Feb 5 18:09:22 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/460e55e7/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs b/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
index 57f1dcf..8a0fc7f 100644
--- a/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
+++ b/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
@@ -190,7 +190,7 @@ namespace Lucene.Net.Util
                     }
 
                     FieldCache.CacheEntry[] badness = new FieldCache.CacheEntry[badEntries.Count];
-                    badness = badEntries.ToArray(); //LUCENE TO-DO had param of badness before
+                    badEntries.CopyTo(badness, 0);
 
                     insanity.Add(new Insanity(InsanityType.VALUEMISMATCH, "Multiple distinct
value objects for " + rf.ToString(), badness));
                 }


Mime
View raw message