Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93438 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55095 invoked from network); 23 May 2016 09:09:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 09:09:20 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.46 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.46 mail-pa0-f46.google.com Received: from [209.85.220.46] ([209.85.220.46:33829] helo=mail-pa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/D4-14293-0C8C2475 for ; Mon, 23 May 2016 05:09:20 -0400 Received: by mail-pa0-f46.google.com with SMTP id qo8so61255000pab.1 for ; Mon, 23 May 2016 02:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=mNvxg17Pn+hMNxSetEo/Our17xSguFE9LHiaveSGlJs=; b=ObnqaiT+e4c3lht9FjougmYbqWj4B26KQiugJHT61JOug9kafjZuKswctXyLMe+jDh eG18o0xYEFqk5R5DfOHa7kWhyiSGzAWP9OeOCQ2OipL1mMqoeb7QWEepP3OcQCM1xvRh Zp6zNG/MSJNkFWnExxpzbYyGIdoc+72Um34DxnSLiyuUuEfqw7HhIsbZcYE83ikQuPx9 IgoMs7pWRWFh9087DCdqQqGuIXpm05YiBkZzKpXlHddOc0ar3zIuHqzwU5huSYT+Oa8T kZ0IApkQ6lH4JCmAt5bVRC6UlHZLlHSPoi5o1yJx/wa/3HKAZZw3DYyu0paKx4+XObES Bftg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mNvxg17Pn+hMNxSetEo/Our17xSguFE9LHiaveSGlJs=; b=b44zBCGH+wW9SNlWO1yA+JQU7QOwG8+QM+Hlw+yyKaRuE3an2oSv4k+aMCV0akn7IG FLfS8OGft3/4tks7NP5BWKQjf/UCZ0ON7VvFbvOVagex54cf6ZL6mpzW//NzY9I0uG9D GUzJORfsJffhYaLmYPKThNBZoP5qhZC1VJSY2H10KpbdRUxu3zqtpFTR9S6y9NxnjxRD kBBtzHf6dV0ltJWJLu7s/zMjmdj7NtcCn3LrUy07oPJXlEvXAACm3PyGVcDZq8YiAKUm MZ8737dGgc5w1LfJ6O7et2eMQ+jS8ixmSbV0GDQ1s5TEeWPVK0aDRMwf00Fo1es4yZRF +jng== X-Gm-Message-State: AOPr4FWy+/CV03gra40QrV/xMPOHdKvlpKdt1BF1C2eBsOoNeCQK8sIZfaBZc4xrgjcYCQ== X-Received: by 10.66.234.131 with SMTP id ue3mr25867133pac.120.1463994557666; Mon, 23 May 2016 02:09:17 -0700 (PDT) Received: from [192.168.2.102] (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id k69sm9921272pfc.41.2016.05.23.02.09.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 May 2016 02:09:16 -0700 (PDT) To: Dmitry Stogov , Joe Watkins , PHP internals , Phil Sturgeon References: Message-ID: Date: Mon, 23 May 2016 02:09:13 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: smalyshev@gmail.com (Stanislav Malyshev) 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. -- Stas Malyshev smalyshev@gmail.com