Skip to content

Commit 7564490

Browse files
bdachpeppy
authored andcommitted
Use hashset for faster lookup
1 parent 58992b2 commit 7564490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osu.Game/Screens/Select/FilterControl.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#nullable disable
55

66
using System;
7-
using System.Linq;
7+
using System.Collections.Immutable;
88
using osu.Framework.Allocation;
99
using osu.Framework.Bindables;
1010
using osu.Framework.Graphics;
@@ -65,7 +65,7 @@ public FilterCriteria CreateCriteria()
6565
Sort = sortMode.Value,
6666
AllowConvertedBeatmaps = showConverted.Value,
6767
Ruleset = ruleset.Value,
68-
CollectionBeatmapMD5Hashes = collectionDropdown.Current.Value?.Collection?.PerformRead(c => c.BeatmapMD5Hashes).ToList()
68+
CollectionBeatmapMD5Hashes = collectionDropdown.Current.Value?.Collection?.PerformRead(c => c.BeatmapMD5Hashes).ToImmutableHashSet()
6969
};
7070

7171
if (!minimumStars.IsDefault)

0 commit comments

Comments
 (0)