Skip to content

Commit

Permalink
1.8.5版本,提高TrieNode转数组的速度
Browse files Browse the repository at this point in the history
  • Loading branch information
toolgood committed Jan 21, 2018
1 parent 89e65fa commit 2a1f21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ToolGood.Words/TextSearch/WordsSearchEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private int BenchMatch(bool[] bench, List<char> list, int start, int min)
var removeList = new int[list.Count - 1];
for (int i = 1; i < list.Count; i++) {
removeList[i - 1] = list[i] - min;
}
}
start = start + min;
bool[] bs = new bool[len * 2];
Buffer.BlockCopy(bench, start, bs, 0, bs.Length);
Expand Down

0 comments on commit 2a1f21a

Please sign in to comment.