PHP 8 and JIT compiler

Relax and enjoy The Lounge. For all Non-Joomla! topics or ones that don't fit anywhere else. Normal forum rules apply.
Locked
User avatar
JurajB
Joomla! Guru
Joomla! Guru
Posts: 624
Joined: Fri Oct 02, 2015 3:28 pm

PHP 8 and JIT compiler

Post by JurajB » Tue Dec 08, 2020 7:59 am

Can you tell us about cons and pros of PHP 8 JIT compiling, what is JIT compiling and how does it affect joomla/joomla performance.
Thanks!
Juraj

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: PHP and JIT compiler

Post by sozzled » Tue Dec 08, 2020 8:08 am

J! uses PHP. PHP is an interpreted language. There are no plans to rewrite J! in a language that has to be compiled at this time.

Although PHP 8 claims to have JIT compilation, rewriting J! for PHP 8 at this time would kill the project.

User avatar
JurajB
Joomla! Guru
Joomla! Guru
Posts: 624
Joined: Fri Oct 02, 2015 3:28 pm

Re: PHP 8 and JIT compiler

Post by JurajB » Tue Dec 08, 2020 10:17 am

OK I think you misunderstood my question. Will be J! on PHP 8 code faster with JIT?

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: PHP 8 and JIT compiler

Post by waarnemer » Tue Dec 08, 2020 12:45 pm

https://en.wikipedia.org/wiki/Just-in-time_compilation

read the comment from @sozzled.
...it will not be there so it cannot be faster...


As i read across the several sites, JIT currently would be more useful when PHP is used outside the web.

User avatar
JurajB
Joomla! Guru
Joomla! Guru
Posts: 624
Joined: Fri Oct 02, 2015 3:28 pm

Re: PHP 8 and JIT compiler

Post by JurajB » Wed Dec 09, 2020 6:54 am

As I look on things PHP8 is actually little slower than 7.4, but it was an early version of 8.

User avatar
darb
Joomla! Hero
Joomla! Hero
Posts: 2038
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden

Re: PHP 8 and JIT compiler

Post by darb » Fri May 21, 2021 11:52 am

Any test/adaption from Joomla devs for Joomla 4 optimization towards php 8/JIT?


Locked

Return to “The Lounge”