Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DrawableLinkCompiler allocations #27199

Merged
merged 1 commit into from Feb 17, 2024
Merged

Conversation

EVAST9919
Copy link
Contributor

@EVAST9919 EVAST9919 commented Feb 16, 2024

Similar fix to #26790

Values have been taken while idling in BeatmapOverlay and looking at the leaderboard (it has many user links).
pr

@frenzibyte
Copy link
Member

My dotMemory tools are busted, refraining from review.

@frenzibyte frenzibyte removed their request for review February 16, 2024 22:48
@@ -23,12 +25,21 @@ public partial class DrawableLinkCompiler : OsuHoverContainer
/// <summary>
/// Each word part of a chat link (split for word-wrap support).
/// </summary>
public readonly List<Drawable> Parts;
public readonly SlimReadOnlyListWrapper<Drawable> Parts;
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change of type here was just to limit outwards mutability, yeah?

Copy link
Contributor Author

@EVAST9919 EVAST9919 Feb 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. It's not used anywhere aside from tests either way, so felt safe.

@peppy peppy merged commit 71afb88 into ppy:master Feb 17, 2024
11 of 17 checks passed
@EVAST9919 EVAST9919 deleted the link-compiler-alloc branch February 17, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants