Home  >  Article  >  Backend Development  >  What optimizations have been made at the bottom of PHP7?

What optimizations have been made at the bottom of PHP7?

藏色散人
藏色散人Original
2020-07-02 10:35:364071browse

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!

Statement:
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