www.digitalmars.com         C & C++   DMDScript  

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


          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:

Jul 17 2015