dwatteau / scummtr

Fan translation tools for LucasArts SCUMM games
MIT License
24 stars 4 forks source link

GCC builds are ~30% faster than Clang/MSVC builds #4

Open dwatteau opened 3 years ago

dwatteau commented 3 years ago

Observed on macOS Mojave x86-64 with Clang 11.0.0, and OpenBSD/macppc 6.8 with Clang 10.0.1.

scummtr is approximately 30% faster with GCC than with Clang, when importing a translation.

GCC 10.2.0 and GCC 4.2.1 at -O2 are both faster than Clang at -O2 or -O3, so I don't think that it's a recent GCC improvement, since GCC 4.2.1 is from 2007.

There's no need for this set of tools to be extremely performant, but a reproducible 30% difference seems strange.

Possible reasons:

dwatteau commented 3 years ago

And, on the same machine, it seems that a release MSVC build is even a bit slower than the Clang build.

Roughly, importing a translation in the floppy version of ATLANTIS takes:

I'll try playing with a bit of profiling to see where it seems to be slower.