mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use static lambdas in LINQ queries for improved performance
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user