[Issue 14571] [REG2.064] Large static arrays seem to lock up DMD

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 22 02:11:02 PDT 2015


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
I'll fix this, but you should know that this necessarily creates large sections
in the executable file of repeated data. For such large arrays, it is better to
allocate and initialize them on program startup.

The way globals work on modern CPUs is you are not saving any execution time by
using static data. Large static arrays is an artifact of FORTRAN.

--


More information about the Digitalmars-d-bugs mailing list