Re: Re: [RFC] Typed Properties
| From: | André Rømcke | Date: | Mon, 23 Jul 2018 12:32:46 +0000 |
| Subject: | Re: Re: [RFC] Typed Properties | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102960@lists.php.net to get a copy of this message | ||
> On 19 Jul 2018, at 13:34, Dmitry Stogov <dmitry@zend.com> wrote:
>
> I've run few benchmarks, to measure the performance penalty of this proposal.
>
>
> https://gist.github.com/dstogov/b9fc0fdccfb8bf7bae121ce3d3ff1db1
>
>
>
> In most cases real-life apps become ~1% slower. In the worst case, I got 6% slowdown (on
> mediawiki).
Nice overview.
Is there any overview of how it will improve performance for code moving from magic getters /
setters to this?
Or is there interest in such a comparison?
(Context: working on a larger open source project where that is used quite a bit for type and
read-only safety checks.)
Best,
André