Very slow startup in WSL #3617
Replies: 3 comments 6 replies
-
That's not normal 😬 Could you share an MCVE/example app or does anything take this long including something like litestar-hello-world (https://github.com/litestar-org/litestar-hello-world)? |
Beta Was this translation helpful? Give feedback.
-
is it the same with just uvicorn and not using litestar ? did you try another webserver ? |
Beta Was this translation helpful? Give feedback.
-
Turns out the problem is with the This is what I had in my .env file:
Removing the above line, makes startup instant once more. So the problem looks to be something to do with the way litestar handles ignoring certains files/folders 🙄 |
Beta Was this translation helpful? Give feedback.
-
I don't know if this is typical of litestar, or just due to using it through WSL. Whenever I start the dev server (using
litestar run
), it takes a solid minute or more for the server to start up.I'm running Arch WSL from the Microsoft Store, and this is the timing I get (plus a couple seconds to stop the server) when I run the above command:
2 minutes!
I also notice that reloading takes a long time as well. Not quite 2 minutes, but definitely longer than it should under normal circumstances. Comparatively speaking, vitejs takes less than half a second to start up, and it is also running in WSL.
Is this normal? What could the problem be?
Beta Was this translation helpful? Give feedback.
All reactions