DMD and GDC are unnecessarily using heap allocations for closures

Iain Buclaw ibuclaw at gdcproject.org
Mon May 30 23:19:09 UTC 2022


On Monday, 30 May 2022 at 06:47:24 UTC, Siarhei Siamashka wrote:
> $ gdc-11.2.0 -O3 -g -frelease -flto test.d && time ./a.out
> 55836809328
>
> real	0m6.520s
> user	0m6.519s
> sys	0m0.000s
>
> What do you think about all of this?

Out of curiosity, are you linking in phobos statically or 
dynamically?  You can force either with `-static-libphobos` or 
`-shared-libphobos`.


More information about the Digitalmars-d mailing list