[Scons-users] Help my build get faster... (was SCons and parts)

Pico Geyer picogeyer at gmail.com
Fri Aug 18 05:18:30 EDT 2017


On Wed, Aug 16, 2017 at 4:49 PM, Bill Deegan <bill at baddogconsulting.com> wrote:
> This should work.
>
> for k, f in stuff_to_build:
>    t = env.MyCompiler(k, opts=f['opts'], includes=f['include'])
>    all_targets.append(t)

Oh! Apologies for not understanding what you said previously.
Ok, it took some work but I rewrote my build to not clone for each target.
I now have a 2 second speedup with a warm cache. (4 seconds vs 6 seconds).
This is a decent improvement!
I'll spend a bit more time to try and reduce that further.

Do you think it might be worth mentioning something in the docs about
the abuse of Clone()?

Thanks for all the help!
Pico


More information about the Scons-users mailing list