Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93875 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73072 invoked from network); 10 Jun 2016 15:03:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 15:03:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 157.56.111.107 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 157.56.111.107 mail-bn1bbn0107.outbound.protection.outlook.com Received: from [157.56.111.107] ([157.56.111.107:19642] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/A4-50092-6C6DA575 for ; Fri, 10 Jun 2016 11:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=61dbYAhwXLY/mEzIR5GjiBzKxSdi9hLxiHEUwObftig=; b=rvA8wAA8s3PR7+IHkJeuFZ/txPpv5+ObQ3hOOUhON7p/N8exyn7OoEHaUkeh5f7FnF86hCvot2VkYZ6BnVYIKgv6EBWJkIq3qpWHfeQ/kvF2RpKZ61Gs8SbNu6ecqwgyRcH5zRGt52RHwVAlRbtkubIbZrIvW+HqfpMevsP1Mh0= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1781.namprd02.prod.outlook.com (10.163.72.23) with Microsoft SMTP Server (TLS) id 15.1.511.8; Fri, 10 Jun 2016 15:03:29 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0511.010; Fri, 10 Jun 2016 15:03:29 +0000 To: Levi Morrison CC: Joe Watkins , PHP internals , Phil Sturgeon Thread-Topic: [PHP-DEV] [RFC][Vote] Typed Properties Thread-Index: AQHRwwRGj0ENNGEFDkqgG/C+lJXeu5/ioaBhgAAgBgCAADxUgA== Date: Fri, 10 Jun 2016 15:03:29 +0000 Message-ID: <1f65c1f4-587f-2a60-cdab-c2c42d2a2027@zend.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-imapappendstamp: BY2PR0201MB1784.namprd02.prod.outlook.com (15.01.0511.003) authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: 56043468-afeb-4519-0389-08d3914061ff x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1781;5:ZmsRa9hTwrQamz9HUgyQ80emiRw2nKV2yfuZsiUYKlW+b9tHK7uA2YpJ/UWlcrYDD6EtCJH9enbuOsZTg77LLovVoy451r2J+TcSpdSGjqVHqL11rmT0iHw4l6hu/3jpsB9malglKgL6JdlvFAy2Gg==;24:yPoc5iv1nOvDw+/f8S8NabYE+V33MqFy3b7Aptfo+Jw0PoUKwPc50woJBSzNfz2cUJABsZjAqI2HwWgvYwi3lN+0tI9tMPhXeMxDXWnILNk=;7:cuYG6MJNw+YUGcne+DS+ZzZaBb7470/Mj0lLXFBDztoUZDq5t6dsYEOoKxyZ663tLh03n73RFyIbScz6YVlBRzrStufWILyuCFOLT3j0OfqzXyoZXAN0nsDQxo2SegNh0C7hs0xpiPM8NfizAtuva2a5/ps/ZLKgint7BsbTByw5z8uWrSTrA6zgvbZ5xRaF/Tgbo8UqhIJ9JXRQ/WEYHJvIBYucDoibvmZMnLGwC+o= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY2PR0201MB1781;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-forefront-prvs: 096943F07A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(24454002)(199003)(377454003)(189002)(19580395003)(19625215002)(68736007)(81156014)(19580405001)(33646002)(86362001)(2900100001)(2950100001)(19627405001)(81166006)(5008740100001)(105586002)(15975445007)(106116001)(76176999)(586003)(101416001)(92566002)(97736004)(31686004)(10400500002)(19617315012)(102836003)(5002640100001)(99286002)(3846002)(87936001)(11100500001)(66066001)(8936002)(16236675004)(36756003)(3660700001)(5004730100002)(6116002)(31696002)(3280700002)(4326007)(50986999)(122556002)(106356001)(110136002)(8676002)(189998001)(77096005)(2906002)(54356999);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1781;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_1f65c1f4587f2a60cdabc2c42d2a2027zendcom_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2016 15:03:29.4859 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1781 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: dmitry@zend.com (Dmitry Stogov) --_000_1f65c1f4587f2a60cdabc2c42d2a2027zendcom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On 06/10/2016 05:24 PM, Levi Morrison wrote: On Fri, Jun 10, 2016 at 6:37 AM, Dmitry Stogov wrote: Hi, I hardly worked on implementation of this patch for a week, but I still don= 't like it. It makes 15% slowdown on each property update in existing PHP code (without= types), and I don't see a way to improve this. Update of typed properties is going to be even more expensive. Benchmark results are included into RFC (and not changed with the latest ve= rsion of the patch). -1. Thanks. Dmitry. ________________________________ From: Joe Watkins Sent: Friday, June 10, 2016 1:38:04 PM To: PHP internals; Phil Sturgeon Subject: [PHP-DEV] [RFC][Vote] Typed Properties Afternoon internals, The vote for typed properties has been restarted. Please take part: https://wiki.php.net/rfc/typed-properties Cheers Joe To clarify though, didn't Wordpress and Mediawiki see only a 0.1% slowdown? In my opinion that is definitely a tolerable performance hit for such a feature. I don't see any big value in this feature. Most framework access object properties through getters and setters anyway. They can be and should be used to provide type-safe API. Another level of protection that makes slowdown instead of expected speedup= , dosn't make any sense. Thanks. Dmitry. --_000_1f65c1f4587f2a60cdabc2c42d2a2027zendcom_--