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 2017/02/05 16:51:55 UTC
[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
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 <sh...@shadstorhaug.com>
Authored: Sun Feb 5 18:09:22 2017 +0700
Committer: Shad Storhaug <sh...@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));
}