diglactic / laravel-breadcrumbs

Laravel Breadcrumbs - A simple Laravel-style way to create breadcrumbs.
https://packagist.org/packages/diglactic/laravel-breadcrumbs
MIT License
868 stars 63 forks source link

Question about performance #47

Closed jlcharette closed 2 years ago

jlcharette commented 2 years ago

Good morning, I am wondering Is the routes/breadcrumbs.php file parsed each request? I would like to understand better the impact of this package on the app performance.

Thank you! Julien

shengslogar commented 2 years ago

Hi Julien, it is! But because each breadcrumb is configured within a function, we're only registering all the breadcrumbs for each page load, then calling functions as needed to render the breadcrumb trail. You shouldn't see any noticeable performance impact from the package itself. Feel free to reopen with any additional questions :)