On 7/27/20 7:32 AM, aberba wrote:
> Goes to show most of us will do just fine with GC code. Our job is to
> learn how to use it well.
Exactly. My programs sometimes run for minutes on dozens of gigabytes of
files. Compared to that, the number of and the total time spent for
garbage collections is comically low.[1]
Ali
[1] Michael Parker shows how to profile the GC here:
https://dlang.org/blog/2017/06/16/life-in-the-fast-lane/
Spoiler: It's as simple as passing the --DRT-gcopt=profile:1 command
line option to any compiled program.