from my experience, linux compiles my code about 5-10x faster than on windows
from my experience, linux compiles my code about 5-10x faster than on windows
If this is C++, you must be running GCC? And I'm guessing it might not be the MinGW version? Try Clang. Something GCC does makes its performance die on Windows. Not entirely sure what it is but you won't see this kind of a difference with Clang (or I think the MinGW version of GCC).
Well either that, or you're compiling a language that's so fast to compile that most of the time is spent just opening and closing files.
But I would say, honestly twice as fast ;)
In real world scenarios Windows will be probably even slower, to to installed secondary and tertiary Antivirus and bloatware on top and unmaintained drivers. While on Linux you better choose your hardware wisely before buying, than it will run smooth. Intel and AMD are always fine.
Just too many layers of abstraction for the storage stack on Windows. It worked great when we had spinning HDDs and IO was much much slower than memory. Now with super fast IO all those layers are creating bottlenecks.
You’ll get faster speeds on Windows with WSL + ext3/4 than native Win + NTFS.
Can you give us some more details outlining how you made the comparison, including what hardware, and what kind of code you were compiling?
That is not incredible. I've seen windows machines take minutes to compile project from arduino-ide that compiled in a few seconds on same class machines on linux with a few students.
I think it has to do with windows defender. It probably has to check binaries which are created or executed. I saw a student got a good improvement in compile times after disabling it. I didn't measure it, but I can say it was significant.