www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14805] New: Unreasonably slow "new Struct[large]"

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

          Issue ID: 14805
           Summary: Unreasonably slow "new Struct[large]"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: wyrlon gmx.net

struct Struct
{
  ushort one;
}

auto dummy = new Struct[513*513];

The above program takes ~50s to compile on a modern computer.

No difference between:
v2.067.1
v2.068.0-b1

--
Jul 17 2015