mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
Replace foreach with for - MOAR SPEED
This commit is contained in:
parent
9a9f2aa293
commit
ba8d8cede9
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue