performance 10%

This commit is contained in:
ikpil 2023-05-12 00:04:14 +09:00
parent 9bbd245962
commit 1cd8acfa8c
1 changed files with 4 additions and 1 deletions

View File

@ -95,7 +95,10 @@ namespace DotRecast.Detour.Crowd
long key = CombineKey(x, y); long key = CombineKey(x, y);
if (_items.TryGetValue(key, out var ids)) if (_items.TryGetValue(key, out var ids))
{ {
result.UnionWith(ids); for (int i = 0; i < ids.Count; ++i)
{
result.Add(ids[i]);
}
} }
} }
} }