Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71518 invoked from network); 11 May 2016 15:09:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2016 15:09:18 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.152 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.152 blu004-omc4s13.hotmail.com Received: from [65.55.111.152] ([65.55.111.152:49381] helo=BLU004-OMC4S13.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/FE-28272-B1B43375 for ; Wed, 11 May 2016 11:09:16 -0400 Received: from BLU437-SMTP66 ([65.55.111.137]) by BLU004-OMC4S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 11 May 2016 08:09:13 -0700 X-TMN: [+/w/hDYxLeSiDTEXou0STrVPbTcI8qb6] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_D5696F31-92E9-4DD6-A0D2-996E65C510B9" MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: Date: Wed, 11 May 2016 17:09:08 +0200 CC: Dmitry Stogov , Nikita Popov , Xinchen Hui , internals References: To: Joe Watkins X-Mailer: Apple Mail (2.3112) X-OriginalArrivalTime: 11 May 2016 15:09:10.0797 (UTC) FILETIME=[126C8BD0:01D1AB97] Subject: Re: [PHP-DEV] Single Stack for all generators From: bobwei9@hotmail.com (Bob Weinand) --Apple-Mail=_D5696F31-92E9-4DD6-A0D2-996E65C510B9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Looks like there is an "ine" in the link: Correct link: = https://gist.github.com/dstogov/06116f1610f45f81523a9927c6c243ac = Bob > Am 11.05.2016 um 17:02 schrieb Joe Watkins : >=20 > 404 >=20 > Cheers > Joe >=20 > On Wed, May 11, 2016 at 3:54 PM, Dmitry Stogov = wrote: >=20 >> Hi, >>=20 >>=20 >> Nikita, please review the patch >> https://gist.github.com/dstogov/06116f1610f45f8152ine3a9927c6c243ac >>=20 >> It's the next attempt to use the single stack for all generators. >>=20 >> Now I don't see any problems or BC breaks. >>=20 >>=20 >> In case "yield" is used as an expression in context of function call. = e.g. >> var_dump(yield), engine backups and then restores active call frame = chain. >>=20 >>=20 >> Bob tested the patch on application that intensively uses generators, = and >> reported: >>=20 >> 15% less L2 cache loads >>=20 >> 20% less cycle stalls due to memory subsystem >>=20 >> 3% more CPU_CLOCK_UNHALTED due to additional freeze/restore. >>=20 >>=20 >> I'm going to commit this patch tomorrow. >>=20 >>=20 >> Thanks. Dmitry. >>=20 --Apple-Mail=_D5696F31-92E9-4DD6-A0D2-996E65C510B9--