I went to a company two days ago, first asked if I have read the source code, how to optimize the performance of PHP, and so on, and I have been reading by self-study. The current level is the market to sell PHP books, most of the knowledge points are understood, but the core of the optimization methods do not know much, seek guidance!
Reply content:
The interviewer interviewed you, not asking you to read the source code, but to see if you are familiar with PHP, so understand some of the bottom-level implementation (it must be said that some surface phenomena do need to have some understanding of the bottom).
I personally feel that, and do not need to read the source code, just need to know some common issue on the line, such as the PHP array why not follow the index traversal, and so on.
My blog often has this kind of article to share, welcome the attention: http://www. laruence.com/
Thanks I am also learning php kernel-related things, "extending and Embedding PHP" is good, although now PHP5.4 will release the official version, but this book is still very valuable reference.
The other is to see the PHP source code, starting from the development of PHP extension, I think that under the Linux development is much simpler and faster.
The most important thing is interest, enjoy the learning and exploration process. Optimizing performance does not necessarily have to be familiar with source code. Know the principle of PHP and some common library ah function ah what complexity, it can be. In fact, the most important thing is the program itself algorithm, logic performance optimization.
Of course, if your basic skills are good enough, don't look at the code, you can probably guess how PHP is implemented internally and how to optimize it.
If you have a strong interest, look. Can be of great help to the technology. Most optimizations should not be optimized for the language level, and it is necessary to know a little about the implementation. I looked all over the first floor of the blog of Bird Brother. Look at a book called Deep into the PHP kernel of the ebook OK just optimization, did not ask you will not write extensions!
General optimization, / http phpe.net/category/tech/
The bottom two posts on this list may help you!
If you want to write the extension, you slowly boil it
The requirements of the source code level is a bit high oh, it is estimated that there should be large companies. Be proficient in C, and be familiar with Zend. See PHP source code for the understanding of PHP is also helpful, recommended: http://www. php-internal.com/book/