When using the following code which retrieves an object from a webservice I saw a slowdown of roughly .5s after combining the lines.
$getChildren = $OKMDocument->getChildren(array('token' => $token, 'path' => $path));
$fileArray = $getChildren->return;
to
$fileArray = $OKMDocument->getChildren(array('token'=> $token, 'path' => $path))->return;
Is there an easy way to identify why this would cause such a performance hit?
Edit:
It is a webservice hosted locally.
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/services/OKMAuth?wsdl');
$OKMDocument = new SoapClient('http://localhost:8080/OpenKM/services/OKMDocument?wsdl');
The tool what you are searching for is called a profiler. The most common way to profile PHP applications would be to use the xdebug profiler together with a tool like wincachegrind or kcachegrind (linux) what helps you to investigate your program flow and execution times. The GUI will look like this :
You should start reading the xdebug documentation about profiling