its not that bad if you use the native filesystem, although then you have to actually get your files into the native filesystem
Using IDE in Windows and execution in wsl2. So IDE has files on Windows file system and use mutagen to keep them in sync with wsl2 file system via ssh. It's actually instant, only downside is duplication but thats a small price to pay.
Another workaround is to use WSL2.
You can still get improvements in some scenarios with mutagen on WSL2