Home > Backend Development > PHP7 > body text

What optimizations have been made at the bottom of PHP7?

藏色散人
Release: 2023-02-17 16:52:02
Original
4093 people have browsed it

The optimizations made at the bottom of PHP7 include: 1. ZVAL structure optimization, reducing the occupancy from 24 bytes to 16 bytes; 2. The internal type "zend_string", the structure member variable uses the "char" array, not Use "char*"; 3. PHP array implementation changes from hashtable to zend, etc.

What optimizations have been made at the bottom of PHP7?

PHP7 underlying optimization

  • ZVAL structure optimization, occupying 24 The bytes are reduced to 16 bytes

  • The internal type is zend_string, the structure member variables use char arrays, not char*

  • PHP array implementation Changed from hashtable to zend array

  • Function calling mechanism, improved function calling mechanism, reduced some instructions by optimizing parameter transfer link

Recommended Study: "PHP7"

The above is the detailed content of What optimizations have been made at the bottom of PHP7?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!