High Performance PHP
Jul 06 26Momentan findet die OSCON statt, O’Reillys Open Source Convention. Einen interessanten Vortrag scheint George Schlossnagle gehalten zu haben: High Performance PHP. Auf dem Blog der Zend Developer Zone wurde leider nur ein winziger Ausriss davon wiedergegeben, den wir hier eben wiederholen:
George Schlossnagle nannte in seiner Präsentation eine Top-10-Liste für Best Practices in High Performance PHP.
- Use a compiler cache
- Control your include trees to no more than 10 includes
- Be mindful of how you use your RDBMS (Was ist RDBMS?)
- Be mindful of how you use other network resources
- Use RegEx cautiously
- Always build with caching in mind
- Output buffering and compression are good.
- Watch for resource exhaustion
- Profile early, profile often.
- Dev-Ops cooperation is essential.
Auch wenn diese Punkte im Zusammenhang mit hohen Performance-Anforderungen genannt wurden, sollte man sie bei jedem PHP-Projekt im Hinterkopf haben.