News for hackers. Stuff that matters.
Re:PHP 7 deployment at Dailymotion by geerlingguy on Thursday October 13, 2016 @08:08PM (#12705262)
For a lot of array-heavy applications (where you store all kinds of data in giant multi-level PHP arrays), the memory usage alone counts for most of the speedup; instead of wading through tens or hundreds of MB of array structures, PHP 7 trimmed things down by a factor of 2 or more.

There are a lot of PHP apps/CMSes/etc that gained 30-50% speedups due to just that improvement. Other more optimized apps/scripts saw a much more modest gain.

Re:PHP 7 deployment at Dailymotion by mgkimsal on Thursday October 13, 2016 @10:34PM (#12705796)
IIRC, a PHP array entry had 127 bytes of overhead. PHP 7, that went down to 42(?). Also, IIRC, for JVM, it's .. 37? 40? PHP7 got array overhead down a lot, and I do believe that's where a lot of speed improvement came from (though certainly not all of it).
Re:PHP 7 deployment at Dailymotion by TazeTSchnitzel on Friday October 14, 2016 @12:05PM (#12708997)
This talk's slides have a good summary of how much overhead was reduced: http://www.slideshare.net/nikita_ppv/php-7-what-changed-inte...
Re:PHP 7 deployment at Dailymotion by ucho on Friday October 14, 2016 @04:56AM (#12706872)
PHP array is equivalent to LinkedHashMap and yes, it has 40 bytes overhead per entry in Java.