Finalizers, Destructors, RAII, GC
Max Haughton
maxhaton at gmail.com
Fri Apr 30 12:14:42 UTC 2021
On Friday, 30 April 2021 at 10:52:42 UTC, Ola Fosheim Grøstad
wrote:
> On Friday, 30 April 2021 at 10:44:07 UTC, Ola Fosheim Grøstad
> wrote:
>> On Thursday, 29 April 2021 at 15:11:06 UTC, Imperatorn wrote:
>>> [...]
>>
>> From the ABI:
>>
>>>[...]
>
> The bad part is made more explicit here:
>
> https://dlang.org/spec/abi.html#classes
>
> As you can see, every object wastes 8 bytes per interface it
> supports. Ok if you only have 100 instances, not good if you
> have one million instances (would waste 8 megabytes per
> interface you support).
8 Megabytes!?
More information about the Digitalmars-d
mailing list