Skip to content

Improve memory consumption by cleaning up garbage references - #35

Merged
clue merged 1 commit into
clue:masterfrom
clue-labs:garbage
Jun 13, 2018
Merged

Improve memory consumption by cleaning up garbage references#35
clue merged 1 commit into
clue:masterfrom
clue-labs:garbage

Conversation

@clue

@clueclue commented Jun 12, 2018

Copy link
Copy Markdown
Owner

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.

@clueclue added the new feature New feature or request label Jun 12, 2018
@clueclue added this to the v1.3.0 milestone Jun 12, 2018
@clue

clue commented Jun 12, 2018

Copy link
Copy Markdown
OwnerAuthor

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.

@clueclue changed the title [WIP] Improve memory consumption by cleaning up garbage referencesImprove memory consumption by cleaning up garbage referencesJun 13, 2018
@clue

clue commented Jun 13, 2018

Copy link
Copy Markdown
OwnerAuthor

Updated and removed WIP marker now that https://github.com/reactphp/promise/releases/tag/v2.7.0 and https://github.com/reactphp/promise-timer/releases/tag/v1.5.0 have been released, this is now ready :shipit:

@clue
clue merged commit 3db09f4 into clue:masterJun 13, 2018
@clue
clue deleted the garbage branch June 13, 2018 20:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new featureNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@clue