Re: GC Improvements in PHP 7.3.0
| From: | Christoph M. Becker | Date: | Sat, 08 Dec 2018 18:50:30 +0000 |
| Subject: | Re: GC Improvements in PHP 7.3.0 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103581@lists.php.net to get a copy of this message | ||
On 07.12.2018 at 19:51, Michael Kliewe wrote:
> Am 07.12.2018 um 16:11 schrieb Christoph M. Becker:
>
>> 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>
>
> 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...
Thanks! Then it should definitely be mentioned in the migration guide.
I'll see to it.
--
Christoph M. Becker