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

Remove event listeners on pool/worker termination to remove circular references to callbacks #84

Merged
merged 2 commits into from
Mar 19, 2023

Conversation

lucasnetau
Copy link
Contributor

While tracking down memory growth on a long running process using ReactPHP Filesystem I came across the following circular reference that needs to be cleaned up by the GC. Results where seen in benchmark/memory.php

In a small test of 2500 invocations of RPC this reduced GC cycles from 137 to 0

Improve display of garbage collection cycles in output memory benchmark
@boring-cyborg boring-cyborg bot added PHP 🐘 Hypertext Pre Processor Source 🔮 labels Mar 17, 2023
@WyriHaximus WyriHaximus added this to the 1.9.0 milestone Mar 19, 2023
@WyriHaximus WyriHaximus added the Bug 🐞 Something isn't working label Mar 19, 2023
Copy link
Owner

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

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

Nice one thanks 👍

@WyriHaximus WyriHaximus merged commit 1ad9bc8 into WyriHaximus:master Mar 19, 2023
@WyriHaximus
Copy link
Owner

Just released v1.9.0 with this in it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working PHP 🐘 Hypertext Pre Processor Source 🔮
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants