long compile time question
1100110
0b1100110 at gmail.com
Tue Oct 23 21:44:35 PDT 2012
On Tue, 23 Oct 2012 22:50:46 -0500, Dan <dbdavidson at yahoo.com> wrote:
> The following takes nearly three minutes to compile.
> The culprit is the line bar ~= B();
> What is wrong with this?
>
> Thanks,
> Dan
> ----------------
> struct B {
> const size_t SIZE = 1024*64;
> int[SIZE] x;
> }
>
> void main() {
> B[] barr;
> barr ~= B();
> }
> -----------------
I have the same issue on linux x64 2.060
So appending to a dynamic array isn't really that efficient.
But this goes WAY over that line. I'm timing your test now.
It's still going...
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d-learn
mailing list