Hacker News new | ask | show | jobs
by wongarsu 1225 days ago
> I remember no questions being asked when I set up WSL2.

If the (WSL) path to your project is inside ~/ it's on the linux file system. If it's in /mnt/c/ it's in the Windows filesystem. In WSL1 those were about equally fast, both going throught the windows kernel. With WSL2, accessing /mnt/c/ from Linux has to go through Windows, and accessing \\wsl$ from Windows has to go through Linux, so where you put the files decides where they are fast.

1 comments

> In WSL1 those were about equally fast, both going throught the windows kernel

Yes, WSL1 was great. I hope it will never be sunset, as I need good IO performance.

> where you put the files decides where they are fast.

I also also hope we'll eventually get an option to pass partitions to HyperV, which is currently possible only with full disks.

It would be a return to the previous WSL1 level of performance for files within a NTFS partition: even if you'd need a separate NTFS partition, that'd be a minor nuisance to guarantee performance.