Where to keep a Linux project when WSL file operations are slow
Compare identical Linux build tasks in the WSL filesystem and on a mounted Windows drive before buying a faster SSD.
- Linux caseBuild a project copy inside WSL
- Windows mountRepeat the same Linux command on /mnt/c
- DecisionPick a location using matched timings
Pick a representative project
Make two disposable copies of a small repository you control. Keep one under the distribution's home directory and one under /mnt/c. Use the same compiler settings and the same commands in WSL.
Distinguish cold and repeat runs
Time a clean build and a repeat build in both locations. Keep results labelled. A clean build that creates many small files can show a different bottleneck from a repeat that mostly checks timestamps.
Choose by tool ownership
Keep Linux-first project files where Linux tools work most directly. If a Windows-native tool must own the files, measure that tool on the Windows path as a separate case. Preserve both logs when deciding if storage hardware matters.
Try it
Sources
Source review . Research and writing prepared with AI assistance.