Skip to content

Commit 58992b2

Browse files
committed
Materialise realm collection hashes during song select search process
Without this, there's a large overhead to do a realm-live `Contains` search when a collection is selected. This may also help considerably alleviate #27298 (reply in thread) as we will be performing the native realm search much less.
1 parent 85f87b6 commit 58992b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osu.Game/Screens/Select/FilterControl.cs

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

66
using System;
7+
using System.Linq;
78
using osu.Framework.Allocation;
89
using osu.Framework.Bindables;
910
using osu.Framework.Graphics;
@@ -64,7 +65,7 @@ public FilterCriteria CreateCriteria()
6465
Sort = sortMode.Value,
6566
AllowConvertedBeatmaps = showConverted.Value,
6667
Ruleset = ruleset.Value,
67-
CollectionBeatmapMD5Hashes = collectionDropdown.Current.Value?.Collection?.PerformRead(c => c.BeatmapMD5Hashes)
68+
CollectionBeatmapMD5Hashes = collectionDropdown.Current.Value?.Collection?.PerformRead(c => c.BeatmapMD5Hashes).ToList()
6869
};
6970

7071
if (!minimumStars.IsDefault)

0 commit comments

Comments
 (0)