Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spiral/route] GroupRegistry::registerRoutes very slow with xdebug #894

Open
iGrog opened this issue Mar 12, 2023 · 0 comments
Open

[spiral/route] GroupRegistry::registerRoutes very slow with xdebug #894

iGrog opened this issue Mar 12, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@iGrog
Copy link

iGrog commented Mar 12, 2023

I have just three Groups with a couple routes in each.
With xdebug on it takes around 1.5 sec to register Routes.

System: win10 + wsl2 + docker
Spiral: 3.6.1
Spiral/Router: 3.5
PHP: 8.1.14
xDebug: 3.2

File: Spiral/Router/GroupRegistry method: registerRoutes
image

Dump in Buggregator shows:
image

I checked times in RouteGroup::register method:
try/catch block takes: 0.02 sec
setRoute call also around 0.02 sec
Total: around 0.07-0.1sec PER ROUTE

image

As I have 17 different routes, each per 0.1sec delay is 17 * 0.1 ~ 1.5sec per each request.

Without xdebug the picture is like this:

image

Question: any way to speed up with xdebug?

@iGrog iGrog added the Question label Mar 12, 2023
@butschster butschster added this to the 3.9 milestone Sep 11, 2023
@butschster butschster modified the milestones: 3.9, 3.11 Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants