On Sat, 03 Aug 2013 05:29:24 GMT, Jack Applegame wrote:
How to speed up compilaton? (dmd 2.063.2 on Windows)
It seems that the dub recompiles all sources, even files that have not changed since the last compilation.
Is there a way to fix this?
Currently there are basically three options:
- The default "dub build", which builds all files at once
- "dub build --rdmd", which sometimes is faster as it only compiles the files that are actually needed
- Using VisualD and "dub generate visuald" and then switch to single file compilation in the project settings - this will only compile the parts that are actually needed, but may still be slower, as it only compiles one file at a time
There are plans to implement an optimal incremental build scheme, but that requires some additional compiler support and some DMD bug fixes, so it's currently not clear when this may happen. See also this thread.