Documentation

E.1. Introduction

The purpose of this appendix is to provide some concrete strategies for improving the performance of your Zend Framework applications. The guide is presented in a "Question and Answer" format, and broken into areas of concern.

Table of Contents

E.1. Introduction
E.2. Class Loading
E.2.1. How can I optimize my include_path?
E.2.1.1. Use absolute paths
E.2.1.2. Reduce the number of include paths you define
E.2.1.3. Define your Zend Framework include_path as early as possible
E.2.1.4. Define the current directory last, or not at all
E.2.2. How can I eliminate unnecessary require_once statements?
E.2.2.1. Strip require_once calls with find and sed
E.2.3. How can I speed up plugin loading?
E.2.3.1. Use the PluginLoader include file cache
E.3. Zend_Db Performance
E.3.1. How can I reduce overhead introduced by Zend_Db_Table for retrieving table metadata?
E.3.1.1. Use the metadata cache
E.3.1.2. Hardcode your metadata in the table definition
E.3.2. SQL generated with Zend_Db_Select s not hitting my indexes; how can I make it better?
E.3.2.1. Write your own tuned SQL
E.4. Internationalization (i18n) and Localization (l10n)
E.4.1. Which translation adapter should I use?
E.4.1.1. Use non-XML translation adapters for greatest speed
E.4.2. How can I make translation and localization even faster?
E.4.2.1. Use translation and localization caches
E.5. View Rendering
E.5.1. How can I speed up resolution of view helpers?
E.5.1.1. Use the PluginLoader include file cache
E.5.1.2. Extend Zend_View to provide often used helper methods
E.5.2. How can I speed up view partials?
E.5.2.1. Use partial() only when really necessary
E.5.3. How can I speed up calls to the action() view helper?
E.5.3.1. Use the ActionStack when possible
E.5.3.2. Favor helpers that query the model over action()

Previous topic

Prev

Next topic

Next

Copyright

© 2006-2017 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts