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

try moving history updates to background task #5493

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

emptyrivers
Copy link
Contributor

i've been meaning to try this for a while, i can't really tell if it improves anything or not

@emptyrivers emptyrivers added the 🆕 Feature Preview This is a draft intended to show a preview of an upcoming feature. label Oct 23, 2024
Copy link
Contributor

github-actions bot commented Oct 23, 2024

An experimental build of WeakAuras with the changes in this pull request is available here.
Build Time: Sun Oct 27 19:15:31 UTC 2024
Commit:

@@ -1807,6 +1829,14 @@ local methods = {
OptionsPrivate.ClearPicks()
WeakAuras.PickDisplay(pendingPickData.id, pendingPickData.tabToShow)
end
OptionsPrivate.Private.Threads:Add("history_update", coroutine.create(function()
Copy link
Contributor Author

@emptyrivers emptyrivers Oct 23, 2024

Choose a reason for hiding this comment

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

this is the meat of the change, I've a suspicion that doing the work to create the archive is weirdly taxing to the game (possibly due to extreme GC churn?). So, try moving that to a background task, since that seems to have been successful for the migration snapshots.

should improve performance when updating auras somewhat
@emptyrivers emptyrivers merged commit fa7455c into WeakAuras:main Oct 27, 2024
3 checks passed
@emptyrivers emptyrivers deleted the expiriment branch October 27, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 Feature Preview This is a draft intended to show a preview of an upcoming feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants