Replace foreach with for - MOAR SPEED

pull/2476/head
Vasily 5 years ago
parent 9a9f2aa293
commit ba8d8cede9

@ -825,8 +825,9 @@ namespace MediaBrowser.Controller.Entities
}
var newItems = new BaseItem[size];
foreach (var item in items)
for (int i = 0; i < size; i++)
{
var item = items[i];
newItems[positions[item.Id]] = item;
}

Loading…
Cancel
Save