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

Improve memory consumption by cleaning up garbage references #35

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

clue
Copy link
Owner

@clue clue commented Jun 12, 2018

While debugging some very odd memory issues in a live application, I noticed that this component shows some unexpected memory consumption and memory would not immediately be freed as expected. Let's not call this a "memory leak", because memory was eventually freed, but this clearly caused some unexpected and significant memory growth.

This builds on top of the work done in reactphp/promise#113, reactphp/promise#115, reactphp/promise#116 and reactphp/promise#117 and reactphp/promise-timer#33.

I'm marking this PR as WIP because this includes a test for reactphp/promise#124 which is yet to be released as part of react/promise v2.7.0. Once this release is out, I'll update the version reference and this should be ready to be shipped.

@clue clue added this to the v1.3.0 milestone Jun 12, 2018
@clue
Copy link
Owner Author

clue commented Jun 12, 2018

I've updated this to include a test for reactphp/promise-timer#34 which is yet to be released as part of react/promise-timer v1.5.0.

@clue clue changed the title [WIP] Improve memory consumption by cleaning up garbage references Improve memory consumption by cleaning up garbage references Jun 13, 2018
@clue
Copy link
Owner Author

clue commented Jun 13, 2018

@clue clue merged commit 3db09f4 into clue:master Jun 13, 2018
@clue clue deleted the garbage branch June 13, 2018 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant