[Issue 1382] memory allocated for arrays in CTFE functions during compilation is not released

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 2 00:21:32 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=1382



--- Comment #8 from Don <clugdbug at yahoo.com.au> 2011-09-02 00:21:14 PDT ---
(In reply to comment #7)
> It appears that _any_ access of an array variable allocates ram, resulting in
> drastically slower compile times (+55 seconds) and excess memory usage (30+ mb
> in this case using DMD 2.050)

This was fixed in 2.054. There were several cases where reading or writing a
single array element could cause the entire array to be copied! These cases
have now been fixed, giving an order of magnitude improvement in memory use and
compilation time. (The original test case (concatenation) hasn't changed; it's
simply caused by absence of a compile-time gc).
This bug is now a far less serious problem than bug 6498.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list