Skip to content

Conversation

mcg-web
Copy link
Contributor

@mcg-web mcg-web commented Jan 27, 2017

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? no
Fixed tickets none
License MIT

Fix memory leak in react adapter wait
Also remove dead code and add react promise composer suggest.

Copy link
Contributor

@barduck007 barduck007 left a comment

Choose a reason for hiding this comment

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

lgtm

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 97.64% when pulling 3dc80d5 on mcg-web:optimizations into 353bdf3 on overblog:master.


// wait until promise resolution
while ($wait) {
$reactPromise->then(function ($values) use (&$resolvedValue, &$wait) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment inside this block to explain why

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe adding usleep(1) would make it less CPU intensive without sacrificing the performance

Also remove dead code and add react promise composer suggest.
@mcg-web mcg-web requested review from ooflorent and removed request for ooflorent January 27, 2017 16:13
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 97.94% when pulling cfb1d27 on mcg-web:optimizations into 353bdf3 on overblog:master.

@mcg-web mcg-web merged commit 1802903 into overblog:master Jan 27, 2017
@mcg-web mcg-web deleted the optimizations branch January 27, 2017 16:18
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.

4 participants