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

Avoid refetch in RealmLive when operating strictly on the update thread #16618

Merged
merged 4 commits into from Jan 26, 2022

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Jan 26, 2022

Second attempt at this (see #16498). Now with better safeties and statistics.

Previous benchmarks still apply.

@peppy peppy added realm deals with local realm database type:performance labels Jan 26, 2022
osu.Game/Database/RealmLive.cs Outdated Show resolved Hide resolved
@smoogipoo
Copy link
Contributor

You say "better safeties", but is there something that prompted this? No tests have been added or anything. Put another way, what's "unsafe" about the current implementation and why is that not tested against?

@peppy
Copy link
Sponsor Member Author

peppy commented Jan 26, 2022

I meant that the reason I closed the previous PR has now been resolved (the re-fetch was sometimes failing due to lack of refresh). See discussion from this post onwards.

Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

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

Looks fine I suppose...

@smoogipoo smoogipoo merged commit 7544aa4 into ppy:master Jan 26, 2022
@peppy peppy deleted the realm-live-update-optimisations branch January 26, 2022 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realm deals with local realm database size/M type:performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants