As to why the problem went unnoticed for so long, it seems that the GC is not able to be observed by profilers, so whenever we looked at profiles to improve things we obviously did not spot the issue.
That sounds like a bug in the profiler, not with Composer. Observing internal time is pretty important for any profiler.
That sounds like a bug in the profiler, not with Composer. Observing internal time is pretty important for any profiler.