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

Performance fixes #217

Merged
merged 14 commits into from
Jul 28, 2017
Merged

Performance fixes #217

merged 14 commits into from
Jul 28, 2017

Conversation

rokob
Copy link
Contributor

@rokob rokob commented Jun 29, 2017

No description provided.


private function maybeSendMoreBatchRequests($accessToken)
{
$max = $this->maxBatchRequests-count($this->inflightRequests);
Copy link
Contributor

Choose a reason for hiding this comment

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

Style: missing spaces around -

do {
$curlResponse = curl_multi_exec($this->multiHandle, $active);
} while ($curlResponse == CURLM_CALL_MULTI_PERFORM);
while ($active && $curlResponse == CURLM_OK) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a bit confusing to read this code with 3 while loops. It might be a bit more concise if this was all put into the do/while loop with a switch statement to handle the different responses.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, reading this a bit closer it seems like this should be broken up into different functions.

@coryvirok
Copy link
Contributor

Looking good! Let's disregard the CodeClimate checks. I removed the webhook so it shouldn't show up anymore.

@coryvirok
Copy link
Contributor

When can we get these changes merged and released?

@rokob
Copy link
Contributor Author

rokob commented Jul 28, 2017

This is ready to be merged, the big change in functionality related to batching is off by default, so if it has bugs (which it may), it is easy to turn off and fix.

1 similar comment
@rokob
Copy link
Contributor Author

rokob commented Jul 28, 2017

This is ready to be merged, the big change in functionality related to batching is off by default, so if it has bugs (which it may), it is easy to turn off and fix.

@rokob rokob merged commit 382c7fa into master Jul 28, 2017
@rokob rokob deleted the performance-fixes branch October 27, 2017 17:41
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