Are you using WSL1? I thought WSL2 solved all those performance issues.
Can you explain the environment in a bit more detail? Are you running Pulumi from containers in WSL2, and storing your shared files on a Windows filesystem? Or are the shared files in WSL2? Are you using podman, Docker Desktop, something else?