Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103580 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84018 invoked from network); 7 Dec 2018 22:25:03 -0000 Received: from unknown (HELO michael01.phpgangsta.de) (31.214.144.173) by pb1.pair.com with SMTP; 7 Dec 2018 22:25:03 -0000 Received: from [192.168.2.24] (dslb-088-076-252-091.088.076.pools.vodafone-ip.de [88.76.252.91]) by michael01.phpgangsta.de (Postfix) with ESMTPSA id 0A8556C06CB for ; Fri, 7 Dec 2018 19:51:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phpgangsta.de; s=mail201210; t=1544208674; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lw5mPEfbZF9scJ1FKdFUBRRBToDzy3qARr74VCuekpY=; b=YkPsnDDGi9ij3xK6p3vG++MAn6F4lj+7ab29VerZDxKSJrPKeO2Q1IcjMMZORIozHACOuy dfIX+mlzAzK0kujcgsFuy/jCb1R6Y7WxlHnIqZqzSPXOCJaH3OMa7y8A+/mhYAO7kIA2y0 x58IbuAUGyyeAxRsViPyjdG3Zdtnhgw= To: internals@lists.php.net References: Message-ID: <0cb24334-2a4a-89bb-1df2-9450b7b50ac9@phpgangsta.de> Date: Fri, 7 Dec 2018 19:51:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=phpgangsta.de; s=mail201210; t=1544208674; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lw5mPEfbZF9scJ1FKdFUBRRBToDzy3qARr74VCuekpY=; b=G9QZH8v3Ew9ZlGHsvod0eTkHzWtl3SV2WwELmmue9q3VIj3izPP7tcjcIeNFG4BO7VcDEi tVW48dZySH5btIIxXxC57JTIwaccoSuaqCf11gurv+X63JVYBmPg0+AMmHglOUAOLmnJpb fb3z0PdWrLeVOndxdClPdneLej/ChcI= ARC-Seal: i=1; s=mail201210; d=phpgangsta.de; t=1544208674; a=rsa-sha256; cv=none; b=YUUaLbnzZysvlbmQY1lLjXpWP7glYHe2xOq6/PqUyEta+ml2eEm4LlrkmZ0y6IhMitilbW soRFdkJWNmJON49oVEyGDDWSBJ5dDHw6YCDT/sUXkgJRGkrGboW1KZ15sKt/tfCslmNazf LOIXnYL+yn5EDvV40U2fMAAhuQCNBLs= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=info@phpgangsta.de smtp.mailfrom=info@phpgangsta.de Authentication-Results: ORIGINATING; auth=pass smtp.mailfrom=info@phpgangsta.de Subject: Re: [PHP-DEV] GC Improvements in PHP 7.3.0 From: info@phpgangsta.de (Michael Kliewe) 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] 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