GC allocation
Alex via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 21 08:22:15 PDT 2016
Hi all!
timing my program with valgrind/cachegrind and using -vgc option
of the compiler found the message:
"using closure causes GC allocation"
The question is:
does the usage of the closure causes the GC allocation on every
usage of the closure or only on creation/assigning of it? If the
former, why?
I'm not sure, if the context of my problem (say: context of the
closure) is relevant, but have some thoughts about and a working
implementation of it, so if any information is needed, just give
me a sign.
Thanks in advance :)
More information about the Digitalmars-d-learn
mailing list