www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Project building times

reply Sebastian Beschke <s.beschke gmx.de> writes:
Hi,

I'm not sure if this has been brought up before, but anyway:

I've noticed (in a project currently containing 37 source files) that 
building everything in one DMD call is much faster than using SCons 
(which is supposed to speed up building by not rebuilding everything 
every time). I guess this is because DMD has to repeatedly lex the 
imported modules.

I think that a) SCons should be modified to build everything in one DMD 
call and b) dmd might add some kind of caching of the lexed data between 
compiler calls.

Is any of this possible? How do other build tools (such as aap) handle this?

-Sebastian
Jan 30 2005
next sibling parent Sebastian Beschke <s.beschke gmx.de> writes:
Whoops, this probably should've been in the main newsgroup...
Jan 30 2005
prev sibling next sibling parent Andy Friesen <andy ikagames.com> writes:
Sebastian Beschke wrote:
 Hi,
 
 I'm not sure if this has been brought up before, but anyway:
 
 I've noticed (in a project currently containing 37 source files) that 
 building everything in one DMD call is much faster than using SCons 
 (which is supposed to speed up building by not rebuilding everything 
 every time). I guess this is because DMD has to repeatedly lex the 
 imported modules.
 
 I think that a) SCons should be modified to build everything in one DMD 
 call and b) dmd might add some kind of caching of the lexed data between 
 compiler calls.
 
 Is any of this possible? How do other build tools (such as aap) handle 
 this?
I've noticed this as well, and I've been meaning to look into modifying SCons precisely as you suggest, but I haven't been able to find the time yet. :\ -- andy
Jan 30 2005
prev sibling next sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
Sebastian Beschke wrote:

 Is any of this possible? How do other build tools (such as aap) handle 
 this?
A-A-P can handle this (see my shameless plug on the main NG). A-A-P need testers badly to get any further. Lars Ivar Igesund
Jan 30 2005
prev sibling parent Derek Parnell <derek psych.ward> writes:
On Sun, 30 Jan 2005 14:28:48 +0100, Sebastian Beschke wrote:

 Hi,
 
 I'm not sure if this has been brought up before, but anyway:
 
 I've noticed (in a project currently containing 37 source files) that 
 building everything in one DMD call is much faster than using SCons 
 (which is supposed to speed up building by not rebuilding everything 
 every time). I guess this is because DMD has to repeatedly lex the 
 imported modules.
 
 I think that a) SCons should be modified to build everything in one DMD 
 call and b) dmd might add some kind of caching of the lexed data between 
 compiler calls.
 
 Is any of this possible? How do other build tools (such as aap) handle this?
 
 -Sebastian
I also have a tool that builds D apps. It is derived from dmake, and just needs a few finishing touches before I can give to the community. I'll be working on that today. -- Derek Melbourne, Australia 31/01/2005 9:20:37 AM
Jan 30 2005