php - Will my old guzzle code run with a new version and what look for? -


i java programmer , new php. experiencing high cpu usage , long transaction times when acces services using guzzle. sending small message wil cost me on average half second. code below cost me 0.249 seconds

// create rest client $client = new client(url, array(         'request.options' => array(                 'auth' => array($lguser, $lgpassword, 'basic')         ) ));  $time_start = microtime(true); // login web service $request = $client->get('/partnerinformation.svc/login'); $request = $client->get('/partnerinformation.svc/login'); try {     $response = $request->send();     $lgsid = $response->xml();     echo ("logged in successfully; sid: ".$lgsid); } catch (exception $e) {     echo ("error while logging in: ".$e); } $time_end = microtime(true); $time_total = $time_end-$time_start; echo('login time: '.$time_total); 

are there things can speed things or find problem?

i found out looking guzzle.phar file using version 3.8.1., transfer newer version boost performance , lower cpu usage? kind of problems can expect installing new goozle version? enough change guzzle.phar file?

you can read changes , breakwards in official documentation. see pasted code there no changes.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -