Keeping imports clean
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Apr 1 23:44:25 PDT 2012
On 4/2/12, James Miller <james at aatch.net> wrote:
> So in short, it isn't relevant at all.
It is relevant to build times. Compare the build times of this:
import std.algorithm;
import std.array;
import std.conv;
import std.file;
import std.string;
import std.stdio;
import std.typetuple;
import std.typecons;
import std.traits;
import std.range;
void main() { }
With this:
void main() { }
First:
$ timeit dmd test.d
Elapsed Time: 0:00:00.296
Second:
$ timeit dmd test.d
Elapsed Time: 0:00:00.031
That's not a lot of time wasted but it does affect compile times a
little bit. I wonder if DMD could be improved a bit in this regard.
More information about the Digitalmars-d
mailing list