Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96676 invoked from network); 10 Dec 2015 17:08:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2015 17:08:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=ronabop@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ronabop@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: ronabop@gmail.com X-Host-Fingerprint: 209.85.215.44 mail-lf0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:33696] helo=mail-lf0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/11-24183-B81B9665 for ; Thu, 10 Dec 2015 12:08:28 -0500 Received: by lfaz4 with SMTP id z4so61310582lfa.0 for ; Thu, 10 Dec 2015 09:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EkAD51kmu289XmekKO46Inp4SY1kPMoknoMK+wOvE8I=; b=n0OS4Tl2ViqcrPVdR1jfNyWsdIsA139dZJ5lopa8IhZIIk5L0ji8znI3HPyYnxYnXe dlAnVoCb0jL/lcoULHFB6Ho+OyuHe8WOxsuHIP+tHRDXZw4k0Wn05bIVfL2/80X/N0Fa 31vuXtVV34Ou7UjH3NkKuR6e6hX/Hx6Pcgs2/h+vj8dolLyEhkllSzKMo99R0MT2kSLK X+61O8hrV06TZFE//C6z9VYkkfAv2Sw2+AlAcjUhP2bd6KzrMnNVfVPMTTA3ZJhKyy2o sbFo5HI+B0CKS5LTrxdm6aUuWQzCoDeyVGoowVj1FvUr4UEOLnWACu6Nu+eWnfI8voey tbrQ== MIME-Version: 1.0 X-Received: by 10.25.165.202 with SMTP id o193mr5670296lfe.83.1449767304353; Thu, 10 Dec 2015 09:08:24 -0800 (PST) Received: by 10.114.185.138 with HTTP; Thu, 10 Dec 2015 09:08:24 -0800 (PST) In-Reply-To: <56695EFB.2090709@lsces.co.uk> References: <56662437.5040508@lsces.co.uk> <27359E8F-2C04-416B-861D-C2C4C85E4C77@lerdorf.com> <5666CDDD.6030209@lsces.co.uk> <5667A477.1060308@gmail.com> <566855AC.30808@gmail.com> <56687ACA.5090309@lsces.co.uk> <56695BCA.9090305@telia.com> <56695EFB.2090709@lsces.co.uk> Date: Thu, 10 Dec 2015 09:08:24 -0800 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11411d2a2edfd105268e4118 Subject: Re: [PHP-DEV] Practical comparisons on PHP7 From: ronabop@gmail.com (Ronald Chmara) --001a11411d2a2edfd105268e4118 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Dec 10, 2015 at 3:16 AM, Lester Caine wrote: > On 10/12/15 11:02, Bj=C3=B6rn Larsson wrote: > > Just noticed that Smarty team is working on a 3.1.28 relase that plans > > to be PHP 7 compliant, see: https://github.com/smarty-php/smarty > The version I'm running is not giving any errors, similarly ADOdb. Both > were brought up to be clean on PHP5.4 and that seems to be the case with > most BC problems. BUT should either of these packages need any 'major > upgrade' to take advantage of a faster PHP7? Few software stacks should need any major changes to use PHP7. They are e_strict compliant > and well structured so why would they not perform twice as fast on PHP7? If a portion of a stack is poorly architected, poorly written, or poorly implemented, the gains in moving to PHP 7 may be negligible. PHP7 does not double the speed of accessing or updating databases, so if a page is bogged down by an large amount of DB queries, PHP7 will not fix that. PHP7 does not double the speed of filesystem reads and file writes, so if a page has significant amounts of local filesystem access (say, using class/file auto-loaders, or messes around with a whole bunch of template files, data files, whatever) PHP7 will not fix that. PHP7 does not double the speed of network interactions, so if a page has significant amounts of network access (say, pulling data from other URL's, ) PHP7 will not fix that. PHP7 does not double the execution speeds of non PHP library calls, so for example, (in addition to db access libraries) image manipulation libraries, PDF builders, (etc.) will not see increased execution speeds, as they are outside of PHP7. ...Those are just some of the low hanging fruit I've run into professionaly that have showed big gains in addressing. There are lots of possible reasons why PHP7 will show dramatic improvements for some, and little improvement for others. The "PHP7 may double speeds" holds true for certain kinds of PHP code, and usage, but if a page is currently bogged down with crap code, or external calls to things outside of PHP, the overall gains in changing to PHP7 may not be dramatic. -Ronabop --001a11411d2a2edfd105268e4118--