Cached Incremental Updates of DUB Builds

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 26 14:41:08 PST 2015


On Monday, 26 January 2015 at 22:33:21 UTC, Nordlöw wrote:
> My project has grown beyound 10k lines of code.

Eh, that's nothing, especially if they aren't templates. dmd will 
compile that in a fraction of a second (and even then, if you 
used phobos, reading the stdlib into memory will dominate the 
compile time)

idk if dub has an option for this or not, but it probably won't 
make much of a difference - if anything, it'll slow things down 
because then the compiler will likely look at the same thing 
several times. (when you compile them all at once, the modules' 
representation are cached in memory after the first import, 
whereas doing them separately, it needs to be done each time the 
compiler runs)


More information about the Digitalmars-d-learn mailing list