[dmd-internals] AssociativeArray in druntime should go before the next release
Steve Schveighoffer
schveiguy at yahoo.com
Fri Feb 3 14:28:02 PST 2012
----- Original Message -----
> From: Martin Nowak <dawg at dawgfoto.de>
> <schveiguy at yahoo.com> wrote:
>
>> I just don't want to move from the current method to something that
> unnecessarily heap-allocates, we already have enough of that.
>>
> What is allocating?
> Are you referring to this http://d.puremagic.com/issues/show_bug.cgi?id=2356?
Yes. Except this would be yet another case to add.
What I am saying is, if we go with the lowering of:
[a:b, c:d] => AALiteral([a,c], [b,d]);
I would like to have this not needlessly allocate the arrays [a, c] and [b, d] on the heap, since those arrays will be unused after that call. To use the heap would be a step backwards, since the current AA literal code does not use it.
-Steve
More information about the dmd-internals
mailing list