Minor perf improvements

This commit is contained in:
Bond_009
2020-11-06 16:15:30 +01:00
parent f172b37401
commit b21919c7f4
12 changed files with 42 additions and 39 deletions

View File

@@ -209,7 +209,10 @@ namespace Emby.Notifications
_libraryUpdateTimer = null;
}
items = items.Take(10).ToList();
if (items.Count > 10)
{
items = items.GetRange(0, 10);
}
foreach (var item in items)
{