Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29462 invoked from network); 20 Apr 2018 10:16:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2018 10:16:50 -0000 Authentication-Results: pb1.pair.com header.from=albertcasademont@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=albertcasademont@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.171 as permitted sender) X-PHP-List-Original-Sender: albertcasademont@gmail.com X-Host-Fingerprint: 209.85.223.171 mail-io0-f171.google.com Received: from [209.85.223.171] ([209.85.223.171:44044] helo=mail-io0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/76-38944-11EB9DA5 for ; Fri, 20 Apr 2018 06:16:49 -0400 Received: by mail-io0-f171.google.com with SMTP id d11-v6so2115409iof.11 for ; Fri, 20 Apr 2018 03:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KfujugPiB94vysY/cy9xAtOephGhyMgO0GU96Laoh6E=; b=Sl06SIDjGEk6B2jIF4gWU1/kvs/rl0FJ7oD2V2rAkp2y0KcOM6v8tUbJlB2/O0Ffox YxOuarx0XaG4ipXJJ8RSg9w1a3ZE+k+WJJg/+BY1rkoMiZymoI4jK8xOG13LIJ58VpSn mXvZnV93pYSLRljvUiXfOu+xOscVjy2i+Pwv4sb32Wd5Fil78fbqdoFpJBa+w1iNyFeK /tadQU0rYOQjt/GIqAXGoeVIZw+3g+yY6LxbKmyeJN/OA6FHfH58uxB5T+d5gOYYImJu /qgmW+I6wlFVBuxYlbBUt7K00qFtlzgD+GMqY6jw5rhPzy7TKw+H3MI2VygoP43jV98H MuxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KfujugPiB94vysY/cy9xAtOephGhyMgO0GU96Laoh6E=; b=ZZilfPLkj3dHBARf7txcrh6tQVDn+uG5ZnM0TKVNTrHKBo8KEQn/Dxynz4IVV00hS6 nJ76lNV1ogA9GaBNl/SwD/hzZ3zEAJojpKH0x6I+CeOwoMrtC50ELr2Ff0/4Pv/Y3D+5 H5+DQIo6oyHjnMKd4brnQg8OW3omJd7G7LeiHXPUVq53ulyQLgKb8tM6zBnU5n5h1wnN x6U/Vqlpw7oPYgom26EA0esUoEXJcRLT/tmeu1w1PSknGWMvq97D/wqm1Fmld1NNYoLU QJbUy7OkhHytIeB2+IiL789sVQwksxZby+EQFoa399xYaPMVSfcv79BY9SyCkaY8rZNH RweQ== X-Gm-Message-State: ALQs6tB4R523W3QI1LnfKK85rT1wVaAz+lAl5urCv9fJ8EHsfN7Z0zKP AoSPwc4km4dKynrvohEVMPbb2wnTPmpH8EJOaAw= X-Google-Smtp-Source: AIpwx4+s+Eu5uM7qXAVmkOQli+8xjG32AqMIafQ4zETGRrGDX+uVL9iT8wpOO5gWEidLbCyRVJ4iG3bN3Vj8s+LkG/s= X-Received: by 2002:a6b:a04c:: with SMTP id j73-v6mr9694128ioe.207.1524219406597; Fri, 20 Apr 2018 03:16:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.188.16 with HTTP; Fri, 20 Apr 2018 03:16:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2018 12:16:26 +0200 Message-ID: To: Maxime Veber Cc: Nicolas Grekas , internals Content-Type: multipart/alternative; boundary="0000000000004bf8b1056a44fcda" Subject: Re: [PHP-DEV] Performance optimization ideas for PHP 7.3 From: albertcasademont@gmail.com (Albert Casademont) --0000000000004bf8b1056a44fcda Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I agree on maybe opening another thread, I'm a contributor to PHP-PM so yes, we're trying to make things better on that end ;) On Thu, Apr 19, 2018 at 4:50 PM, Maxime Veber wrote: > 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 o= n. > Another thread would be great (with more ideas to improve the situation). > > Maxime > > Le jeu. 19 avr. 2018 =C3=A0 16:41, Albert Casademont < > albertcasademont@gmail.com> a =C3=A9crit : > >> Hi Nicolas, >> >> Don=E2=80=99t you think the biggest performance upgrade that PHP could b= ring 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 < >> nicolas.grekas+php@gmail.com> >> wrote: >> >> > Hello internals, >> > >> > During the last months, I've been working on optimizing Symfony/Twig f= or >> > PHP7. >> > I found a few situations where the PHP engine could likely be optimize= d, >> > and where it would benefit real-world apps. >> > >> > In each case, these might look like micro-optimizations, but they are >> not >> > 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 PH= P >> > version. >> > (I'm sorry I don't have the knowledge to do it myself.) >> > >> > Keep up the good work! >> > >> > Nicolas >> > >> > --0000000000004bf8b1056a44fcda--