Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62676 invoked from network); 10 Feb 2015 09:56:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2015 09:56:25 -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 209.85.220.173 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.173 mail-vc0-f173.google.com Received: from [209.85.220.173] ([209.85.220.173:33988] helo=mail-vc0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/90-47508-8C5D9D45 for ; Tue, 10 Feb 2015 04:56:25 -0500 Received: by mail-vc0-f173.google.com with SMTP id hy4so7182922vcb.4 for ; Tue, 10 Feb 2015 01:56:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=IdnHb+vhUF4ShhfS3jnYVqQZa2pZQ2WvK0+UIMiVIiA=; b=MGSnpEzlbGmKEQRa9BVrvjK2sS2s2XzmXtbfOXMqC2KtXcwf8sI3oAaNeM6wDrJHIO 62MCVwnwnTku7prAChvSfHL0oiE3E/bh2I7rX9PYKiCf2NHqeg6lRmh/l3Xfg2LX6OAP RiJLMWU4LSSj/pdbXyWS6vgj6iq0eUJH7BH3qf32thM+Vyx64eDzvju712HYXMLQ0GBo fb6q8PQS4GklRCFjInR1bMuvxRN5bMp3Zki45M/yGEgZzLfa3xVk5xnDj/RbjF0PIL19 /e6eVtxi8VphoqxacpF9MhKyq36S2BHAuhbSYUlzxjVjE9ZwKorcqiwIuWk/jSpEI4IS TK1g== X-Gm-Message-State: ALoCoQlTXQ7XTtu6eTrVQmlHB8NFCWM/tsE0eP1fdbFd9L9pOSGjFKyLQSU4R9Bs25UDcjp7/ODq/uR0c9czCpXzAvfpuzXVqjwA7W+Vfw1dGk/nRaxN1GaMfg9CG4csHg4p6RNVSOpoeQunfzshsM8o6GW5PuTcrA== MIME-Version: 1.0 X-Received: by 10.221.2.197 with SMTP id nv5mr13797847vcb.53.1423562182403; Tue, 10 Feb 2015 01:56:22 -0800 (PST) Received: by 10.52.74.73 with HTTP; Tue, 10 Feb 2015 01:56:22 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <41EBB3A7-4AFC-4A73-B9AA-CD7129ACF9F0@strojny.net> <54D5FB10.1040100@beccati.com> Date: Tue, 10 Feb 2015 13:56:22 +0400 Message-ID: To: Matt Ficken Cc: Pierre Joye , Lars Strojny , PHP internals , Andrea Faulds , Matteo Beccati Content-Type: multipart/alternative; boundary=089e0115fd0232c0a6050eb8e63a Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: dmitry@zend.com (Dmitry Stogov) --089e0115fd0232c0a6050eb8e63a Content-Type: text/plain; charset=UTF-8 If you measure performance impact using CPU performance counters (VTune, oprofile, perf) or even better CPU emulator (callgrind) you'll see slight degradation. It's also clear that it makes some degradation from code review. 1% difference is invisible because measurement mistake is usually bigger and also performance may change from build to build because of different code layout. Anyway, this is not a stopper, just an issue that would be great to fix. Thanks. Dmtiry. On Tue, Feb 10, 2015 at 11:09 AM, Matt Ficken wrote: > FYI, the patch doesn't cause a performance regression. > > I built on and tested with IIS/Windows. Performance remains the same for > Wordpress, Symfony and Joomla. Mediawiki actually increased slightly (5%), > so performance is increase/decrease is not an issue here, the language and > engine are. > > > If you're interested, see: > > http://windows.php.net/downloads/snaps/ostc/pftt/perf/results-20150209-master_rcaf5521-scalar_type_hints_2_strict_mode-8436.html > > > Regards > -M > > > On Mon, Feb 9, 2015 at 6:43 PM, Pierre Joye wrote: > > > On Feb 10, 2015 1:22 AM, "Lars Strojny" wrote: > > > > > > Hi Matteo, > > > > > > sorry for the late response. > > > > > > > On 07 Feb 2015, at 12:46, Matteo Beccati wrote: > > > > > > > > Maybe it's just me, but I didn't quite understand the point you are > > making here. Are you saying that declares are more or less like ini > > settings? > > > > > > Yes, exactly that. The new declare()-statement will fundamentally > change > > how the engine behaves and one will have two learn more or less two > flavors > > of PHP. Even worse I am forced to use the PHP flavor the person picked > who > > changed the declare() statement last. > > > > No. You are not. > > > > > cu, > > > Lars > > > --089e0115fd0232c0a6050eb8e63a--