problem with gc?
thedeemon via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 27 00:15:30 PDT 2015
On Wednesday, 27 May 2015 at 05:48:13 UTC, zhmt wrote:
> What happened when the code changes a little? Who will give an
> explaination,Thanks a lot?
Yes, on the first sight it looks like your allocations in the
loop make GC spend too much time. I don't think "scope" does
anything here. Try adding "delete str;" to the end of the loop,
it should do what your "scope" meant. I know it's deprecated but
sometimes it's just right.
More information about the Digitalmars-d-learn
mailing list