Thursday 20 June 2024

WSL1 versus WSL2

The Windows Subsystem for Linux currently comes in two varieties, WSL1 and WSL2. The latter has faster performance and "100% system call compatibility" (as opposed to intermediation through a translation layer in WSL1) so it should be the preferred option.

WSL1 may still be preferred in specific cases, for example, if project files need to be stored in the Windows file system. However it should be assessed whether these files can be mounted in Linux instead. There are also some specific networking scenarios to consider.

No comments: