What should happen here?
    Max Samukha 
    maxsamukha at gmail.com
       
    Tue Sep 28 16:14:06 UTC 2021
    
    
  
On Monday, 27 September 2021 at 22:10:25 UTC, Elronnd wrote:
> On Monday, 27 September 2021 at 14:39:36 UTC, Max Samukha wrote:
>> If performance was important, you would want to allocate the 
>> object itself on the stack? The cost of GC allocation 
>> outweighs that of GC.addRoot by a lot.
>
> The cost of GC _collection_ outweighs that of GC.addRoot by a 
> lot.  GC _allocation_ is pretty much free.
Yeah, "by a lot" is nonsense.
    
    
More information about the Digitalmars-d
mailing list