[Scons-dev] Optimizing SCons...

Mark A. Flacy mflacy at verizon.net
Mon Dec 3 15:09:53 EST 2012


On Sunday, December 02, 2012 06:56:02 PM Dirk Bächle wrote:

> Hi Gary,

>

> On 02.12.2012 17:58, Gary Oberbrunner wrote:

> > This looks very interesting. Speed and memory use are two "hot

> > button" issues for many SCons users.

> >

> > What does it do that would break existing projects? Is it the not

> > storing of full paths? (When were slots introduced? 2.2? In that

> > case we're fine on that front.)

>

> all the path attributes for File nodes ("abspath", "labspath" ...) have

> now to be retrieved via functions like "get_abspath()", because they

> might get computed on the fly.

> They usually get accessed directly in old code...and this is also the

> recommended method in all the documents.


Why can't we just turn those path attributes in the File nodes to be
properties? http://docs.python.org/2/library/functions.html#property



>

> This change is the last in line, so it can be easily omitted for a

> start...it brings just a few percent anyway.

>

> Regarding the usage of slots we have to keep the following in mind: it

> makes extending SCons a little bit more difficult. You can't simply slap

> new attributes and functions on a class like SCons.Node anymore, but

> have to subclass it instead.

> Multiple inheritance is not possible anymore for the "slotted"

> classes...so we'd lose some flexibility for SCons as a build system

> framework.

>

> Regards,

>

> Dirk

>

> _______________________________________________

> Scons-dev mailing list

> Scons-dev at scons.org

> http://two.pairlist.net/mailman/listinfo/scons-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20121203/569f441a/attachment.html>


More information about the Scons-dev mailing list