What should happen here?
Steven Schveighoffer
schveiguy at gmail.com
Fri Sep 24 15:31:46 UTC 2021
On 9/24/21 11:25 AM, deadalnix wrote:
> On Thursday, 23 September 2021 at 19:54:56 UTC, Steven Schveighoffer wrote:
>> You can. But wouldn't you prefer just pushing something on the stack?
>>
>
> Not really. If the optimizer can remove dead stack pushes, then program
> will become 2x slower instantly in addition of consuming more stack memory.
>
You think pushing on the stack is going be 2x slower than calling
`GC.addRoot`?
-Steve
More information about the Digitalmars-d
mailing list