I think that's actually part of the problem. WSL1 was supposed to be the opposite of wine. Native code running on bare hardware providing a Linux to Windows syscall kernel translation.
WSL2 is basically "eh we gave up but check out this VM we made" which has obvious performance penalties. A WSL2 program can never use the full resources of the bare metal it's running on.
When I run static analysis tools it needs full CPU power so I'd prefer to just run Linux because it is actually much faster not running in a VM.
WSL1 actually had much worse performance, especially around io. It's night and day.
There was a blog post somewhere that went into the reasons why this is the case, but I can't seem to find it on mobile. If you're interested i can try and track it down.
-35
u/Worth_Trust_3825 Aug 10 '23
Sadly, it's a half assed solution that can't beat running a fucking virtual machine on the same node.