how do you mix ref counted types and non- at nogc algorithms
ikod
geller.garry at gmail.com
Wed Jul 8 11:26:20 UTC 2020
Hello,
I have ref-counted type (keeps reference to mallocated memory)
which I would like to release as soon as possible (when I have no
refs from my code).
The problem is - standard algorithms can use some GC allocations
to keep refs to my data until GC is collected, so that I have no
control over memory consumption when non- at nogc algorithms applied
to RC data.
Right now I have to avoid something like my_data.splitOn(), but
is there any better solution?
Thanks
More information about the Digitalmars-d
mailing list