Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102058 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57393 invoked from network); 19 Apr 2018 14:50:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2018 14:50:51 -0000 Authentication-Results: pb1.pair.com header.from=nek.dev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nek.dev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.54 as permitted sender) X-PHP-List-Original-Sender: nek.dev@gmail.com X-Host-Fingerprint: 209.85.214.54 mail-it0-f54.google.com Received: from [209.85.214.54] ([209.85.214.54:35899] helo=mail-it0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/7D-38944-8CCA8DA5 for ; Thu, 19 Apr 2018 10:50:50 -0400 Received: by mail-it0-f54.google.com with SMTP id e20-v6so2036965itc.1 for ; Thu, 19 Apr 2018 07:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g2gVssNMXiY1+GZAs/8SlHy2OsH7sRcs81V8YWxeiO8=; b=fopXt3/MY5e05nW1p3UB7h9lRXNqoNmBjfc1TtzRdpKTLJf4BS15gq+rfeL78yQsqT Bnsm4eVAQs6dIJLctu0xgDYVMmyLIQM/ztfFfMsJZIg4Ah9JQzHcdPx+D1QYpK8TqedW nJTIfrtd+8DEXUt/xHyx0wuBJzZthBaN/iodLtwHVVIL7slpEbLVzHC5ykXoQ0Jn2Ti9 2i2gAB45LLNA/nBLcziUSH2LQloPwp72GmCiR2xplwIiu+Qo2rppMB9bfi4KYsRQ90qu jx+U3irIA3IFfCFmzzizVtadWB8Zpu6isYrM9oLqTHNdUyZdwmJKdeM71sGRWThFcjlR p4OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g2gVssNMXiY1+GZAs/8SlHy2OsH7sRcs81V8YWxeiO8=; b=MaaiQjFZumlYlgiMv0Z/dq9iFwW4rh925yP8Os/q7CHIRyehSd9ThFwfxVia5EPhZQ AZKBS0uQWhGBNdfvHFTU4wrZ8Br5ageEtRaneGULdUgSXq1ueno7HKn9WJiUzaJ4XUX/ futPncdQ5z0Fqax73kV8IYcm5CWseqRcnkmXYtkxFvpjaH/ztfYCGg/Tr3Pw3dwPftfF XKZUxITWuS1a3RcRghqHCATAhuJsNxpBxOw2Sqge7ZhuQ/AYVSKXPkm3azETBcLAGKR+ fwzNcqQsZC8z5IYBibb2vSW5xtfoAD/TFZWzW6dL4jtet0m2TiY6yETuomcyvPzQMIol xTWg== X-Gm-Message-State: ALQs6tA7nz3rR8tf0KhNfY10/CmJc5Wnz4QEtmoAPpQ2s9fP1UVLw9lH POqRHV+MvgKlhA+XYLGyXy9grwOp4xjAGOfWbfs= X-Google-Smtp-Source: AIpwx48ivW85k8pc6eQs4zvxQp1BVSthhPK+2BOl4dHNcnzqwVGKlxAb7rLcixHARTD9kiUCW5Clxh/4C2I7sotH/rI= X-Received: by 2002:a24:5f51:: with SMTP id r78-v6mr6699522itb.119.1524149445922; Thu, 19 Apr 2018 07:50:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 19 Apr 2018 14:50:34 +0000 Message-ID: To: Albert Casademont Cc: Nicolas Grekas , internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000004f13df056a34b2c2" Subject: Re: [PHP-DEV] Performance optimization ideas for PHP 7.3 From: nek.dev@gmail.com (Maxime Veber) --0000000000004f13df056a34b2c2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Thank you very much Nicolas for theses detections ! (I'll try maybe my first contributions to PHP =F0=9F=98=87) Albert, I think what you are speaking about is another topic. But still interesting. You should maybe try to use php pm and see how it works and what are the drawbacks to fix so it works nicely. (because they are many as I understood by reading the code of php-pm) Also Ocramius is right on the problem of memory leaks to fix in libraries, this is something to focus on. Another thread would be great (with more ideas to improve the situation). Maxime Le jeu. 19 avr. 2018 =C3=A0 16:41, Albert Casademont a =C3=A9crit : > Hi Nicolas, > > Don=E2=80=99t you think the biggest performance upgrade that PHP could br= ing is a > real application server that could keep the app bootsrapped between > requests, much like php-pm/reactphp/aerys are trying to do? > > Best, > > Albert > > On Thu, 19 Apr 2018 at 16:11, Nicolas Grekas > > wrote: > > > Hello internals, > > > > During the last months, I've been working on optimizing Symfony/Twig fo= r > > PHP7. > > I found a few situations where the PHP engine could likely be optimized= , > > and where it would benefit real-world apps. > > > > In each case, these might look like micro-optimizations, but they are n= ot > > in hot loops. > > Here are the links to issues I created in the php bug tracker: > > > > - Class constants are slow: they should be inlined at runtime - > > https://bugs.php.net/76178 > > - Add array_key_exists() to the list of specialy compiled functions - > > https://bugs.php.net/76148 > > - Don't trigger copy-on-write when assigning same value - > > https://bugs.php.net/76150 > > > > As a bonus, I also created this one today: > > - Add hrtime() to zend_try_compile_special_func() - > > https://bugs.php.net/76241 > > > > It would be awesome if those ideas could be implemented in a future PHP > > version. > > (I'm sorry I don't have the knowledge to do it myself.) > > > > Keep up the good work! > > > > Nicolas > > > --0000000000004f13df056a34b2c2--