paulirwin commented on code in PR #914: URL: https://github.com/apache/lucenenet/pull/914#discussion_r1501709319
########## src/Lucene.Net.Tests/Search/Spans/TestSpans.cs: ########## @@ -320,7 +373,8 @@ private void TstNextSpans(Spans spans, int doc, int start, int end) [Test] public virtual void TestSpanOrEmpty() { - Spans spans = OrSpans(new string[0]); + // LUCENENET: Using Array.Empty<T>() instead of new string[0] to reduce allocations + Spans spans = OrSpans(Array.Empty<string>()); Review Comment: Filed #916 for this, will use `Arrays` for now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org