4 ms·
No, it's a native mingw-based GCC toolchain(cross compiler for an embedded platform), and everything is noticeably slower than on Linux or even macOS. I think i
by qalmakka 6y ago
No, it's a native mingw-based GCC toolchain(cross compiler for an embedded platform), and everything is noticeably slower than on Linux or even macOS. I think it's because GCC is designed as relying on a multitude of separate binaries instead of being a single process. For each file it compiles it spawns a truckload of separate processes (collect2, cc1plus, as, ld...) and if there's something that's slow as heck on Windows, is spawning processes.
- mehrdadn 6y agoYou're right about the slowness! I just noticed it now. I'm confused why though -- I don't actually see it spawning a lot of processes, and the slowness is far beyond what could be explained by that. Even a single process call appears to run much more slowly. I haven't dug into it but maybe the I/O pattern is funny?