Taiko diffcalc cheese detector has O(n^2) complexity #10190
Labels
area:difficulty
priority:0
Showstopper. Critical to the next release.
ruleset/osu!taiko
type:performance
Milestone
The following maps will make taiko diffcalc hang pretty much endlessly:
https://osu.ppy.sh/beatmapsets/1164271#osu/2428686
https://osu.ppy.sh/beatmapsets/1164230#osu/2428616
https://osu.ppy.sh/beatmapsets/1124068#osu/2352021
https://osu.ppy.sh/beatmapsets/1124068#osu/2352019
The reason is because these have 50000+ hitobjects (last one has 350000), and run into
osu/osu.Game.Rulesets.Taiko/Difficulty/Preprocessing/StaminaCheeseDetector.cs
Line 90 in 10400b4
osu/osu.Game.Rulesets.Taiko/Difficulty/Preprocessing/StaminaCheeseDetector.cs
Line 127 in 10400b4
with every increment of the loop, effectively iterating some 122500000000 times...
The text was updated successfully, but these errors were encountered: