Skip to content

performance issue when using request_multiple #283

@FlyingBlazer

Description

@FlyingBlazer

The following code will cause serious performance problem:

do {
    $status = curl_multi_exec($multihandle, $active);
}
while ($status === CURLM_CALL_MULTI_PERFORM);

it will be much better if changed as follow

do {
    $status = curl_multi_exec($multihandle, $active);
    usleep(1000);
}
while ($status === CURLM_CALL_MULTI_PERFORM);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions