Closed Shkarbatov closed 6 years ago
This slide explains that without a garbage collector for cycling reference, the objects would stay forever in memory. That was the behavior of pre PHP 5.3, when only the reference counter was managing the memory.
Now we have the GC, this will not happen unless you have a real memory leak.
Hi, trying to understand this slide: https://speakerd.s3.amazonaws.com/presentations/8f6d8303502241cab85a320a2bb1db2d/slide_27.jpg
What you mean under "forever in memory"?
If I try next:
With iterations: 200, 2 000, 20 000, 200 000
Result always the same:
What you mean under "always stay in memory"?
As I understand memory will leak until not start cycle GC or until I not run gc_collect_cycles(). We can find only what developer forget to unset.