why is wave so slow?

Solved
devcode

Jul 14th, 2022 02:02 PM

I installed Wave on my computer and ran it with Laravel Sail. But... it's super slow. Any tips for speeding it up?

tnylea

Jul 14th, 2022 06:54 PM

Which parts specifically are slow on your end?

If install a standard Laravel application on your local machine does that run fast.

There shouldn't be a reason that Wave is any slower than a typical Laravel application so I'm wondering if it has something to do with your local setup.

Let me know if there are any specific pages that are slow. Is it slow if you are logged in versus not logged in?

Let me know and I can look into it ;)

Thanks!

devcode

Jul 14th, 2022 07:22 PM

My normal Laravel 9 / Sail setup runs fast in Docker (2 CPUs, 2 GB memory, 1 GB swab, 64 GB disk image) on Mac.

Loading Wave / Laravel / Sail, specifically the admin settings takes 3 to 4 seconds to load. Also running "npm run dev" with Vite.

Saving a setting can take 7 to 9 seconds.

Curious if anyone experiences this and how I can speed this up.

devcode

Jul 15th, 2022 10:30 AM

Best Answer

I figured this out and it runs fast now.

Quick solution:

copy & paste the current Laravel 9 docker docker-compose.yml file.

scalpel solution:

Add XDEBUG lines in the docker-compose.yml file.

services: --> laravel.test: --> environment:

XDEBUG_MODE: "${SAIL_XDEBUG_MODE:-off}"

XDEBUG_CONFIG: "${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}"

Report
1
devdojo

Jul 18th, 2022 07:17 AM

Awesome!

glad you got that resolved and thanks for posting your solution.

Hope you have a great day!

Report
1