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.

Reply via email to