3 ms·
It seems when you start to hit the memory limit PHP's automatic garbage collection will loop through the constructed objects to see if any can be cleaned up. I
by rossriley 12y ago
It seems when you start to hit the memory limit PHP's automatic garbage collection will loop through the constructed objects to see if any can be cleaned up.
If none can (and in the case of Composer all the objects exist for a reason) then it's wasting time analysing the objects.
So in this case there's only a large waste of cpu doing nothing with gc enabled.
- icebraining 12y agoWell, yes and no, since some of the reports show an increase in memory usage, so the gc was doing something.
- masklinn 12y agoMost reports don't show significantly changed memory usage though (some increase slightly, others decrease slightly).