by thorum · 5y ago · 0 comments
When I tried WSL a while back, file system access was pretty slow especially for scanning large folder trees with many files (important for programming projects). Is this still an issue or has it improved in that area?
We just want to Rsync some files from a Linux server to a windows build server without garbage performance and somehow there isn’t a way to do that still.
Trying not to sound reductive, but either it's an issue for you or not. It's really going to depend on your use case which should be super apparent for you.
I do all my web development within WSL2 and its great. I suspect this is the main use case they're optimising for.
I haven’t found one that doesn’t use Cygwin (slow filesystem).
WSL2 takes a different approach: HyperV was always good at thin VMs... they took it to the next level and made WSL2 a super thin VM. Now performance is near native, depending on your benchmark.
Bias: I work at MS in an unrelated area. I run Arch as my daily driver, but am damn impressed by the engineering in WSL2.
This is a big deal because, say you wanted to use intellij idea on wsl, using it on windows side and accessing the wsl filesystem does not really work. It is too slow. Now you can run it in linux, access the native fs. I imagine it would perform pretty good.
Theoretically this change would eliminate the need for that but it's nice to have the same VSCode on Windows as in WSL.
FYI, WSL 1 and WSL 2 are completely different architectures, so you have to explicitly upgrade your instances from 1 to 2.