If you use WSL2, you can specify the resources it gets access to (Memory, CPU, etc.). You also need to be wary of the inter-OS filesystem. If your files are on Windows, but running in WSL, you'll get a serious performance drop. You can get around this by either moving the files into the WSL filesystem, or set up an internal network drive and mount the folders that way (which is what I do). I wrote a Gist explaining how to do it with CIFS.
2
u/tcpdumpling Mar 04 '25
Ive been part of two companies that ditched WSL for macs because of docker compose.