drastic speedup through multicalls

This commit is contained in:
kremsy
2017-05-14 09:25:52 +02:00
parent 5d6f8d047c
commit e5c7fdbf6b
7 changed files with 33 additions and 31 deletions

View File

@ -252,10 +252,19 @@ class CallbackManager implements UsageInformationAble {
$timings[$key] = array($callback[0], microtime(true) - $time1);
}
//Execute Multicalls
$this->maniaControl->getClient()->executeMulticall();
$fullTime = microtime(true) - $startTime;
if ($fullTime > ErrorHandler::LONG_LOOP_REPORT_TIME) {
$this->maniaControl->getErrorHandler()->triggerDebugNotice(json_encode(array("Long Loop Detected: " . $fullTime, $timings)));
}
}
/**