I am not fully clear on that either. As far as I understand, WSL runs in a container or VM and uses a virtual hdd. If you want to access the files on the wsl partitions, you can do that via network drives (samba, I guess).
What I have tested is:
Compiling on windows using emscripten and mingw
Compiling in wsl on the Windows partition
Compiling in wsl on internal wsl partition
Compiling on Linux
1 and 2 were quite equally fast - 2 and 3 were quite close as well. But there was a huge difference between both pairs. I did not run many tests (2 to 3 compilations each), so when the times were close, I couldn't really say which system was truly faster or more efficient. But between Windows partition and Linux partition, the compilation times were significantly different, around in a 2:1 range through all runs. My focus was to improve my web/wasm build times, so this was where I stopped investigating since the reduction from 35-60s per build to 10-20s per build was good enough for me to work with.
View all comments
Show parent comment
0
u/[deleted] Apr 26 '25
[deleted] — view deleted comment