Hacker News new | ask | show | jobs
by rossriley 4211 days 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.

1 comments

Well, yes and no, since some of the reports show an increase in memory usage, so the gc was doing something.
Most reports don't show significantly changed memory usage though (some increase slightly, others decrease slightly).