[Scons-users] SCons very slow on GitHub actions

Mats Wichmann mats at wichmann.us
Mon Apr 28 14:59:05 EDT 2025


On 4/28/25 12:30, Bill Deegan wrote:
> Curious. Have you tried to compare the runtimes of each of the examples?
> I wouldn't be surprised if one of the examples shows a much larger 
> difference in runtime than the others
> 
> Ok. I took a look.
> Chances are the tests which are missing:
> 
> # Skip initializing any tools in the DefaultEnvironment
> # as we're not using it.
> DefaultEnvironment(tools=[])
> 
> Are the ones taking much longer on Windows.
> This is because when SCons starts up it initializes the 
> DefaultEnvironment(), in particular MSVC initialization is low.
> The above code tell's SCons basically we're not going to use it, so 
> don't initialize it.
I don't think this is the whole story - yes, that extra initialization 
costs, but it's not going to make up the difference between 1/4 second 
and just short of a minute, so one suspects something else is going on.


More information about the Scons-users mailing list