-
Notifications
You must be signed in to change notification settings - Fork 161
bad performance ! :| #152
Comments
Please trace it first.
|
caused by this code : $service = $this->serviceLocator->get('BjyAuthorize\Service\Authorize');
if ($service->isAllowed('route/' . $routeName)) {
return;
} |
more in depth trace exactly caused by this code : $this->loaded && $this->loaded->__invoke(); |
it was about doctrine role provider this code is caused that high response time : $result = $this->objectRepository->findAll(); File vendor\bjyoungblood\bjy-authorize\src\BjyAuthorize\Provider\Role\ObjectRepositoryProvider.php Line 41 |
why bjyauthorize wont cache the roles ? |
With this code execution time : 1.41 s
Without this code execution time : 252 ms
why ! ???
why checking route against route guards takes a lot of memory/time ?
The text was updated successfully, but these errors were encountered: