News for hackers. Stuff that matters.
Re:Deep Dive into PHP 8's JIT by jashmatthews on Sunday August 30, 2020 @12:19AM (#24321330)
This is sort of contradictory but at the same time as expected speed up on "realistic" code isn't as big it's also easier for JIT compiling VMs to optimize high level abstractions than something like C.

JIT compilers have different optimizations available like:

Fast inlined heap allocation (normally much faster than malloc/free). V8 even does allocation combining

Transparent ropes for strings

High level alias analysis for hash tables and objects

Inlining dynamic dispatched functions and dynamically loaded functions

Re:Deep Dive into PHP 8's JIT by chubot on Sunday August 30, 2020 @01:31AM (#24321575)
Do you have pointers on those? I'd be interested in the rope optimizations, etc.