Skip to content

Commit ccb78dc

Browse files
committed
Use Span in Egothor.Stemmer.Diff
1 parent a45a62b commit ccb78dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer

src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/Diff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public string Exec(string a, string b)
185185
int y;
186186
int maxx;
187187
int maxy;
188-
int[] go = new int[4];
188+
Span<int> go = stackalloc int[4]; // LUCENENET: optimize for Span and stackalloc
189189
const int X = 1;
190190
const int Y = 2;
191191
const int R = 3;

0 commit comments

Comments
 (0)