Cached Incremental Updates of DUB Builds

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 26 15:09:51 PST 2015


On Monday, 26 January 2015 at 22:46:46 UTC, Nordlöw wrote:
> On Monday, 26 January 2015 at 22:44:26 UTC, Nordlöw wrote:
>> Ok, then it's more than that. It takes 7 seconds:
>>
>> time dub build
>
> time dub build --combined --force
>
> is in the same order - around 7 seconds.

The only way I managed to change behaviour of DUB was through the 
--build-mode flag as

     time dub build --build-mode=singleFile

which makes it compile each .d file separately:

Building knetquery ~master configuration "application", build 
type debug.
Compiling using dmd...
Compiling ../algorithm_ex.d...
Compiling ../arsd/characterencodings.d...
Compiling ../arsd/dom.d...
Compiling ../assert_ex.d...
Compiling ../backtrace/backtrace.d...
Compiling ../combinations.d...
Compiling ../dbg.d...
Compiling ../grammars.d...
Compiling ../ixes.d...
Compiling ../knet/base.d...
../sort_ex.d(143): Warning: use std.algorithm.sort instead of 
.sort property
../sort_ex.d(168): Warning: use std.algorithm.sort instead of 
.sort property
Compiling ../knet/cn5.d...
Compiling ../knet/decodings.d...
Compiling ../knet/folklex.d...
Compiling ../knet/languages.d...
Compiling ../knet/lectures/all.d...
Compiling ../knet/lemmas.d...
Compiling ../knet/moby.d...
Compiling ../knet/nell.d...
Compiling ../knet/origins.d...
Compiling ../knet/relations.d...
Compiling ../knet/roles.d...
Compiling ../knet/senses.d...
Compiling ../knet/swesaurus.d...
Compiling ../knet/synlex.d...
Compiling ../knet/thematics.d...
Compiling ../knet/wordnet.d...
Compiling ../mmfile_ex.d...
Compiling ../msgpack.d...
Compiling ../permutations.d...
Compiling ../predicates.d...
Compiling ../range_ex.d...
Compiling ../rational.d...
Compiling ../skip_ex.d...
Compiling ../sort_ex.d...
Compiling ../stemming.d...
Compiling ../traits_ex.d...
Compiling ../wordnet.d...
Compiling source/app.d...
Linking...

This takes about twice as long...

- It doesn't seem to support parallelism here. Where's the -j 
--jobs flag?!
- And I can't see any caching in action either.

What's wrong?

Do I have to switch to SCons to get what I want?

I'm using DUB master HEAD.


More information about the Digitalmars-d-learn mailing list