Summary

In this chapter, we have learned how PHP 7 is an optimization in itself, how avoiding dynamic structures in general will always boost the performance of your PHP scripts and how certain functional programming techniques such as memoization can be strong allies when optimizing code performance.

In the next chapter, we will learn how to cope with input and output (I/O) poor latency by learning about generators and asynchronous non-blocking code, multithreading with the POSIX threads (pthreads) library and multitasking with the ReactPHP library.

Get Mastering The Faster Web with PHP, MySQL, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.