Skip to content

Prevent cputime spikes due to gc and add cleanup if ram limit hit#2357

Merged
thegrb93 merged 3 commits into
masterfrom
gc-performance
Jun 10, 2026
Merged

Prevent cputime spikes due to gc and add cleanup if ram limit hit#2357
thegrb93 merged 3 commits into
masterfrom
gc-performance

Conversation

@thegrb93

@thegrb93 thegrb93 commented Jun 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

@thegrb93

thegrb93 commented Jun 6, 2026

Copy link
Copy Markdown
Owner Author

Not totally sure how stable this one is, maybe a server can test it for a while before merging.

@Astralcircle Astralcircle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

gcinfo is deprecated, why not use collectgarbage("count")?

@thegrb93

thegrb93 commented Jun 8, 2026

Copy link
Copy Markdown
Owner Author

gcinfo is a more efficient function

@thegrb93 thegrb93 merged commit 23835ce into master Jun 10, 2026
1 check passed
@thegrb93 thegrb93 deleted the gc-performance branch June 10, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants