Skip to content

Commit

Permalink
Use hashset for faster lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach authored and peppy committed Mar 1, 2024
1 parent 58992b2 commit 7564490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/Screens/Select/FilterControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#nullable disable

using System;
using System.Linq;
using System.Collections.Immutable;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
Expand Down Expand Up @@ -65,7 +65,7 @@ public FilterCriteria CreateCriteria()
Sort = sortMode.Value,
AllowConvertedBeatmaps = showConverted.Value,
Ruleset = ruleset.Value,
CollectionBeatmapMD5Hashes = collectionDropdown.Current.Value?.Collection?.PerformRead(c => c.BeatmapMD5Hashes).ToList()
CollectionBeatmapMD5Hashes = collectionDropdown.Current.Value?.Collection?.PerformRead(c => c.BeatmapMD5Hashes).ToImmutableHashSet()
};

if (!minimumStars.IsDefault)
Expand Down

0 comments on commit 7564490

Please sign in to comment.