You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was raised as a slowdown when using compiled routes over dynamic routes.
We tracked this down through
Livewire\Features\SupportBrowserHistory::getRouteFromReferer
Illuminate\Routing\CompiledRouteCollection::match
Illuminate\Routing\CompiledRouteCollection::handleMatchedRoute
Illuminate\Routing\CompiledRouteCollection::checkForAlternateVerbs
Illuminate\Routing\CompiledRouteCollection::get <-- this is loops for each method (GET/POST/PATCH/DELETE/OPTIONS/HEAD)
Illuminate\Routing\CompiledRouteCollection::getRoutesByMethod
We have a compiled list of 400+ routes and this is consuming 200ms+ of a 1.6s page load (~15%).
Changing this to convert from array -> Route just once will reduced this overhead by 5/6ths.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This was raised as a slowdown when using compiled routes over dynamic routes.
We tracked this down through
We have a compiled list of 400+ routes and this is consuming 200ms+ of a 1.6s page load (~15%).
Changing this to convert from array -> Route just once will reduced this overhead by 5/6ths.
Beta Was this translation helpful? Give feedback.
All reactions