Re: [RFC][Vote] Typed Properties

From: Date: Tue, 24 May 2016 09:40:10 +0000
Subject: Re: [RFC][Vote] Typed Properties
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-93481@lists.php.net to get a copy of this message
On May 23, 2016 4:09 PM, "Stanislav Malyshev" <smalyshev@gmail.com> wrote: > > Hi! > > > 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 > > This is not good. I wonder why these tests weren't made before the vote > and results wheren't added in the RFC. Should we make it a standard > practice to do so? Having 2x slowdown on each property access sounds > like a bad idea. Agreed. We added a performance impact section to the rfc template for this exact reason. We do not enforce it. Maybe we should.

« previous php.internals (#93481) next »