mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-27 00:55:26 +00:00
Reduce string allocations
Some simple changes to reduce the number of allocated strings
This commit is contained in:
1 parent
40f7eb4e8c
commit
b176beb88e
21 files changed
+63
-97
No files matched your search
@@ -222,7 +222,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
||||
{
|
||||
var deadImages = images
|
||||
.Except(chapters.Select(i => i.ImagePath).Where(i => !string.IsNullOrEmpty(i)), StringComparer.OrdinalIgnoreCase)
|
||||
.Where(i => BaseItem.SupportedImageExtensions.Contains(Path.GetExtension(i), StringComparison.OrdinalIgnoreCase))
|
||||
.Where(i => BaseItem.SupportedImageExtensions.Contains(Path.GetExtension(i.AsSpan()), StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
|
||||
foreach (var image in deadImages)
|
||||
|
||||
Reference in new issue
Block a user