[Issue 14805] Unreasonably slow "new Struct[large]"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 17 10:57:21 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14805

Ivan Kazmenko <gassa at mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gassa at mail.ru

--- Comment #1 from Ivan Kazmenko <gassa at mail.ru> ---
Same here.

Maybe it generates an instance of the array at compile time?
Compile-time function execution is known to be slow.

Interestingly,

void main () {auto dummy = new Struct[513 * 513];}

and even

void main () {enum dummy = new Struct[513 * 513];}

compile just fine.

--


More information about the Digitalmars-d-bugs mailing list