On 8/01/12 11:00 PM, Walter Bright wrote:
On 1/8/2012 1:42 PM, Peter Alexander wrote:
"As an example, for me within our current code at Bungie, a single
file change
in the code I usually work on can cost as much as 10mins in linking (many
targets). If I opt to build a single target (say the runtime), then
this is
reduced to ~2 mins. This is without any linker optimization such as
Link Time
Code Generation which is known to heavily increase Link time."

D should be faster at linking, even with the same linker, because if you
use it carefully a lot fewer redundant template instantiations get
written to the object file (which must be culled by the linker).

For example, if you use shared_ptr in C++, every single file that uses
shared_ptr will produce an object file containing the same compiled
version of it.

Most game studios tend to use unity builds, precisely to minimize things like this. Generally there is very little duplicated code in object files. I did measure it at some point in the past and it was fairly negligible.

Reply via email to