Hello,

Thank you very much Nicolas for theses detections ! (I'll try maybe my
first contributions to PHP 😇)

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 à 16:41, Albert Casademont <albertcasadem...@gmail.com>
a écrit :

> Hi Nicolas,
>
> Don’t you think the biggest performance upgrade that PHP could bring 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+...@gmail.com
> >
> wrote:
>
> > Hello internals,
> >
> > During the last months, I've been working on optimizing Symfony/Twig for
> > 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 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 PHP
> > version.
> > (I'm sorry I don't have the knowledge to do it myself.)
> >
> > Keep up the good work!
> >
> > Nicolas
> >
>

Reply via email to