How to use D without the GC ?

Dukc ajieskola at gmail.com
Thu Jun 13 07:31:05 UTC 2024


Dukc kirjoitti 13.6.2024 klo 10.18:
> So for example, if you have a program that sometimes needs 600Mib and 
> sometimes needs 1100MiB, you can in any case allocate all that in one go 
> with one `malloc` or one `new`, but you'll need at least 38/59 
> `SafeRefCounted` static arrays, and therefore `malloc`s, to accomplish 
> the same.

Now granted, 16MiB (or even smaller amounts, like 256 KiB) sounds big 
enough that it probably isn't making a difference since it's a long way 
into multiples of page size anyway. But I'm not sure.


More information about the Digitalmars-d-learn mailing list