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

customserver: preemtively run GC before starting room #3637

Merged

Conversation

black-sliver
Copy link
Member

@black-sliver black-sliver commented Jul 11, 2024

What is this fixing or adding?

GC seems to be lazy.

How was this tested?

Adding a weakref with callback to ctx and to auto_save_thread and watching it not trigger before the change while there is no pressure, and then watching it actually trigger after the change whenever hosting a new room.

Side note: gc.collect(0) should be the cheapest variation and is already enough to find the two objects.

@github-actions github-actions bot added affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jul 11, 2024
@black-sliver black-sliver merged commit 187f9da into ArchipelagoMW:main Jul 14, 2024
17 checks passed
@black-sliver black-sliver deleted the customserver-preemptive-gc branch July 14, 2024 11:56
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants