Re: [PHP-DEV] Inheritance Cache

2021-02-08 Thread Dmitry Stogov
Hi Brent, Preloading had intention to completely eliminate opcache overhead, but because of limitations it wasn't able to preload classes with unresolved constants, typed properties and covariant checks. This PR makes these preloading limitations less strict and adds transparent inheritance cache

Re: [PHP-DEV] Inheritance Cache

2021-02-08 Thread Brent Roose
Hey Dmitry Out of curiousity: how does this compare to preloading? From what I understand preloading also links classes, which was one of the most important differences between preloading files and simply storing them in opcache. Does this change mean that preloading becomes much less relevant

Re: [PHP-DEV] Inheritance Cache

2021-02-05 Thread Benjamin Morel
On Fri, 5 Feb 2021 at 15:03, Dmitry Stogov wrote: > Hi, > > I'm glad to present the result of my recent work - Inheritance Cache. > > https://github.com/php/php-src/pull/6627 > > This is a new transparent technology that eliminates overhead of PHP class > inheritance. > > PHP classes are compile

[PHP-DEV] Inheritance Cache

2021-02-05 Thread Dmitry Stogov
Hi, I'm glad to present the result of my recent work - Inheritance Cache. https://github.com/php/php-src/pull/6627 This is a new transparent technology that eliminates overhead of PHP class inheritance. PHP classes are compiled and cached (by opcahce) separately, however their "linking" was do