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

Slow App Booting Time #80

Open
Pizdiec opened this issue Dec 29, 2024 · 3 comments
Open

Slow App Booting Time #80

Pizdiec opened this issue Dec 29, 2024 · 3 comments

Comments

@Pizdiec
Copy link

Pizdiec commented Dec 29, 2024

Hi,
I am experiencing long boot times(+12 seconds) from requiring package.

Summary:
Using the codeat3/blade-google-material-design-icons package significantly increases my Laravel application's booting time. After profiling my application with Debugbar, I found that this package contributes to a large percentage of the time spent during the boot process.

Environment:
Laravel Version: 11.31
PHP Version: PHP 8.3.6
Package Version: 1.19
OS: Windows 10

Without package:"
image
"
after :"composer require codeat3/blade-google-material-design-icons"
With package:"
image
"

@swapnilsarwe
Copy link
Contributor

Hey @Pizdiec ,
did you try caching the icons?

I know its a huge iconset, but caching generally helps, let me know if even post caching if the performance is this bad?

@swapnilsarwe
Copy link
Contributor

Hey @Pizdiec ,
either you are doing something wrong or you are not telling everything. Can you share a snapshot of composer file + how many icons are you including. There is something we are surely missing here. You can also try php artisan icons:cache on production - this will improve the performance for sure.

I just spinned up a new laravel app with the package and included icons on the welcome page. I am getting 14ms booting time.
image

@Pizdiec
Copy link
Author

Pizdiec commented Jan 14, 2025

Thanks for responding.

I did a new test with freshly installed laravel and I still get 5-8 seconds delay. I should mention that I use breeze with livewire functional option selected. I did not cache icons. I tested only locally and already noticed that with longer wait time it is difficult to build. using "php artisan icons:cache" does solve it, booting time is cut to milliseconds instead of seconds.

composer json.:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants