Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74407 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78232 invoked from network); 21 May 2014 10:47:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2014 10:47:05 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.220.174 cause and error) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.220.174 mail-vc0-f174.google.com Received: from [209.85.220.174] ([209.85.220.174:37570] helo=mail-vc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/77-24198-8248C735 for ; Wed, 21 May 2014 06:47:05 -0400 Received: by mail-vc0-f174.google.com with SMTP id lh14so2257474vcb.19 for ; Wed, 21 May 2014 03:47:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=T5NwKdGi9u/6GURBdYZMSfUvns12VrB3L5kIWDtMUDg=; b=Sfkij1Xjq+ZTqxVGRHGeH9r44eu57jkKyJKtf3p/i0PTCXNV+B6MRSu8LseJMOxTjV AAo7K1maV50B7KmtxlXg7ipYwmBNjC2C9U+Jxva8hYSx7zHifubDn9kD93nzhM3171bh aWrrgXqdWho7kvpBsxMyoeJTTLHqfRvtegc4jF636PHSoKkgAhUvru3U3iDsfvmbgWTP PTs9GEWLQlFVffOxk5C4KEckzYRYo/Bh5OZDuJMlDwn65N0DTTOhs0Fj+w/N+6IHWfid 48ktTWm2p+tZE6uNflpreCG0+oJweE87yXxCCfY0/4PO5eu2laDJinRMhlvko6SYdXRH JGHA== X-Gm-Message-State: ALoCoQln3zuuK3etYkrbrRF5QLaUNfPUVNd+ey1O02EOGxZ+OIE7693M8HZP1UrG7yZk/q6a/Xv4qVLPYzWCZakvagREUzphC79Xnx5CkhScRUP3gEOhYd5Kddlm4fxqQBlOI64xLDmD X-Received: by 10.58.143.13 with SMTP id sa13mr61521veb.44.1400669221558; Wed, 21 May 2014 03:47:01 -0700 (PDT) References: <537BC669.2030704@sugarcrm.com> <20140520230249.E326826082D@dd15934.kasserver.com> <266288285382887601@unknownmsgid> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJ04zgkRUVwbv11086EJrGQvaMdywEXaCCxAkfJhOgB78F+TQD7FCATAWjtWj0CrBl6OQItFbALAcjFut8BoPligAGvSEl7AoAoxRcBQCyDwQIkjvvEAroPpTECYmtSw5kaqctg Date: Wed, 21 May 2014 13:47:00 +0300 Message-ID: <79ebc4da038287be9faf56748d3ecdc4@mail.gmail.com> To: Arvids Godjuks Cc: Yasuo Ohgaki , mails@thomasbley.de, internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b67778666369c04f9e6b7fb Subject: RE: [PHP-DEV] Re: 64bit and phpng, votes and plans From: zeev@zend.com (Zeev Suraski) --047d7b67778666369c04f9e6b7fb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Performance always had and will have the flipside - you either make an extremely fast, but somewhat messy code, or you sacrifise some performance and make a better code. same goes for consistensy - you have to sacrifise some performance for it. The hard thing always is to balance it all. No mere 2%-5% performance increase or decrease will affect a poorly written system - it will probably get a tripple number performance improvement if just redisigned and rebuilt= . I think we=E2=80=99ve spent enough on this topic, and I don=E2=80=99t us wa= nt to get carried into it yet again. Consistency is not an ultimate goal that gives us a carte blanche to do whatever changes necessary regardless of the cost. It=E2=80=99s one factor out of several. Its weight depends on **wha= t** kind of consistency we=E2=80=99re talking about, and whether it makes sense for = the majority of our userbase. Performance isn=E2=80=99t an ultimate goal either. I am absolutely *not* t= hinking about performance alone, nor do all of the core devs that opposed many of the =E2=80=98consistency changes=E2=80=99 that were proposed. If we did we= =E2=80=99d oppose any and all elements of the patch, which isn=E2=80=99t the case. But performan= ce is another extremely important factor, which is why we weighed the benefit versus cost of each part of the change and framed our opinions about it. Nikita came up with a sensible compromise =E2=80=93 which was the goal all = along - and it gained consensus very quickly. Last, there=E2=80=99s nothing slippery about *thinking about performance*. = We should always think about performance with whatever we do. Much like consistency or security, performance isn=E2=80=99t the one and only factor = and should be weighed against other factors, but it must be on the discussion table on each and every thing we do. Also, performance is not at all inherently contradictory to consistency, security or even code quality. PHP 5.6 is almost twice as fast as PHP 5.0, and I=E2=80=99d argue the codeb= ase is better and just as secure and consistent if not more. phpng is another textbook example of how we (aka Dmitry, Xinchen and Nikita) managed to get 10-30% gains in real world performance without reducing the quality of the code in any way, and arguably =E2=80=93 making it better. All this 100%+ performance gains between 5.0 and phpng is tedious, extremely complex work, where individual changes rarely result in a boost of more than 3-5%. You can imagine how much work it is to get to 100%+ improvements, and you should therefore imagine why we don=E2=80=99t take lightly a change that wi= ll undo some of these gains unless we reach the conclusion they=E2=80=99re truly ju= stified, as opposed to just being a matter of principle, or even being interesting in rare uncommon cases. Zeev --047d7b67778666369c04f9e6b7fb--