Am 07.12.2018 um 16:11 schrieb Christoph M. Becker:
> Hi!
>
> NEWS has the following entry[1]:
>
> | Improved PHP GC. (Dmitry, Nikita)
>
> I have not been able to find further info regarding this. So my
> question: are these minor improvements, or should they be documented in
> the migration guide? If the latter, could somebody please roughly
> explain these improvements (are they general performance enhancements,
> or only for particular use-cases, or whatever).
>
> [1] <https://github.com/php/php-src/blob/php-7.3.0/NEWS#L6>
Hi,
it's a huge improvement in some cases, when you have many objects
flying around.
For example in DomPDF (in an artificial performance test) I saw an
improvement from 7 seconds down to 2.7 seconds. It was roughly the same
improvement compared to disabling the GC.
https://github.com/dompdf/dompdf/issues/1813#issuecomment-429228260
Composer disabled the GC and saw a big performance improvement:
https://blog.blackfire.io/performance-impact-of-the-php-garbage-collector.html
Maybe with 7.3 they don't have to disable it anymore... I didn't test.
Here are some performance numbers from nikic:
https://github.com/php/php-src/pull/3165#pullrequestreview-100399813
I would consider it a very nice performance improvement, that can lead
to a faster adoption of 7.3 if you do some marketing with it. A 3x or 5x
improvement is huge. Would be nice to see numbers when using frameworks,
or Wordpress...
Michael