DMD and GDC are unnecessarily using heap allocations for closures

max haughton maxhaton at gmail.com
Mon May 30 11:49:44 UTC 2022


On Monday, 30 May 2022 at 06:47:24 UTC, Siarhei Siamashka wrote:
> Consider the following example:
>
> ```D
> import std.algorithm, std.range, std.stdio;
>
> [...]

Also it's worth noting you can actually make some of these range 
patterns nogc via using zip(repeat(closureVar), blah).map


More information about the Digitalmars-d mailing list