Does selective imports have an effect on the resulting executable? For example if i included the following at the top of my source to only include one function from a library:

import std.algorithm : reduce;

Would it have any impact on the resulting executable? i.e. only include compiled code for the selected functions?

If i imported the whole library like this:

import std.algorithm;

Is it more wasteful? Not as optimised? Any draw backs? Bigger executable?

Reply via email to