Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55684 invoked from network); 23 May 2016 09:09:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 09:09:43 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 217.70.178.86 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 217.70.178.86 slow1-d.mail.gandi.net Received: from [217.70.178.86] ([217.70.178.86:45518] helo=slow1-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/F4-14293-6D8C2475 for ; Mon, 23 May 2016 05:09:43 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 5C7EE47F165 for ; Mon, 23 May 2016 11:06:41 +0200 (CEST) X-Originating-IP: 46.14.238.241 Received: from [10.0.1.160] (241.238.14.46.static.wline.lns.sme.cust.swisscom.ch [46.14.238.241]) (Authenticated sender: ivan.enderlin@hoa-project.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id E5A80C5A80 for ; Mon, 23 May 2016 11:06:40 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <5742C820.8030102@hoa-project.net> Date: Mon, 23 May 2016 11:06:40 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: ivan.enderlin@hoa-project.net (Ivan Enderlin) I vote no for the same performance reason, but the whole Hoa's community is agree with the RFC. Thanks for the hard work! On 23/05/16 11:02, Dmitry Stogov wrote: > I appreciate the work done by Joe, but I vote "no", because the implementation is not good enough yet > > - it's incompatible with opcache (may be it's not a big problem to fix this) > - typed properties assignment is going to be 2-3 times slower ($obj->x += 2; is 3 times slower) > - the patch makes slight negative effect even for untyped properties > > - the proposed behavior for uninitialized typed properties assumes that they have to be checked on each "read". This checks will have to be performed even in native JITed code. I don't see a reason for typing if we have to perform check on each read anyway. > > Thanks. Dmitry. > ________________________________________ > From: Dmitry Stogov > Sent: Monday, May 23, 2016 11:30:09 AM > To: Joe Watkins; PHP internals; Phil Sturgeon > Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties > > Hi Joe, > > The performance effect of this implementation is terrible. > > Assignment to typed property is 2.3 times slower. > Assignment to untyped property in a class with typed properties is 1.8 times slower. > > See the benchmark > https://gist.github.com/dstogov/1b678712adeee51665cdd829195bb800 > > Thanks. Dmitry. > ________________________________________ > From: Joe Watkins > Sent: Friday, May 20, 2016 9:05:34 AM > To: PHP internals; Phil Sturgeon > Subject: [PHP-DEV] [RFC][Vote] Typed Properties > > Morning internals, > > Since we have our answer on nullable types, typed properties can now go > to vote. > > https://wiki.php.net/rfc/typed-properties#vote > > Note that, support for nullability as RFC'd will be merged when the > implementation for nullable_types is merged into master. > > Please participate. > > Cheers > Joe > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >