Compile speed on windows.
Hello,
My question is if the compile time on windows is really much longer than on Linux. It was the case on version 2.0 and it was really very very long compared to a compilation under Linux. I would like to install the dev chain for MuseScore again and see what I could do with the MuseScore 4.0 version. I had stopped offering PR partly because of the slowness of Dev under windows. The precompiled headers could not be used under windows at the time. I don't want to install a dual boot on my computer and have Linux in addition to windows.
Thanks for your help.
Robert
Comments
Under 3 minutes for me., Windows 11, VS 2022, Ryzen 7 5900X, 32GB RAM
In reply to Under 3 minutes for me. by Jojo-Schmitz
Thank you. Do you an idea of ratio between windows VS Linux compile time?
In reply to Thank you. Do you an idea of… by Gai-Luron
No. IIRC Linux is slightly faster. A lot faster as Windows builds using MinGW (here the linking step takes ages)
In reply to No. IIRC Linux is slightly… by Jojo-Schmitz
yes compile in MinGw was
hawfull. That's why I asked the question and I stop to look at Musescore code.
Thank a lot, Il will try to install the env dev and try it again.
bye bye
In reply to yes compile in MinGw was… by Gai-Luron
Well, compile time wasn't an issue with MinGW (at least not with
set MAKEFLAGS=-j %NUMBER_OF_PROCESSORS%
), but link time is.In reply to Compile speed on Windows is… by Anthony Lunt
Sorry, but this is utter nonsense. Microsoft Visual C++ is a native compiler (read: comming from the same vendor as the OS itself) and is the one that MuseScore (3 and 4) uses by default. On my PC (Windows 11) a full build using MSVC takes less than 3 minutes.
You're partly right when it comes to MinGW, something MuseScore did use up to MuseScore 2, (and still can for MuseScore 3, but no longer for MuseScore 4 unfortunately), the compile time is comparable, but the link time is abysmal.
In reply to Sorry, but this is utter… by Jojo-Schmitz
Hello,
compile from scratch on my old computer 8 minutes.
With 3.0 on same computer with Mingw five year ago: 35mn.
Now I can look ank work on code.
thanks Jojo.
bye bye
In reply to Hello, compile from scratch… by Gai-Luron
Probably 10-15 minutes of the 35 were link time