[Refactor] Use static lambdas in LINQ queries for improved performance

This commit is contained in:
2025-11-24 03:00:06 +00:00
parent 5fe7f574d6
commit 04c45e69fa
126 changed files with 971 additions and 929 deletions

View File

@@ -871,7 +871,8 @@ public sealed partial class ImageConvertViewModel : ViewModelBase
HashSet<int> subchannelExtents = [];
Dictionary<byte, int> smallestPregapLbaPerTrack = [];
foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags.Where(t => t == SectorTagType.CdTrackIsrc)
foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags
.Where(static t => t == SectorTagType.CdTrackIsrc)
.Order())
{
foreach(Track track in inputOptical.Tracks)
@@ -885,7 +886,7 @@ public sealed partial class ImageConvertViewModel : ViewModelBase
}
foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags
.Where(t => t == SectorTagType.CdTrackFlags)
.Where(static t => t == SectorTagType.CdTrackFlags)
.Order())
{
foreach(Track track in inputOptical.Tracks)