Book Image

Instant Magento Performance Optimization How-to

By : Nayrolles Mathieu (USD), Mathieu Nayrolles
Book Image

Instant Magento Performance Optimization How-to

By: Nayrolles Mathieu (USD), Mathieu Nayrolles

Overview of this book

The optimization of an attractive commercial website is a non-trivial task that demands time and knowledge. Optimization is a critical point for all growing businesses because a misconfiguration could make you lose money, a lot of money. If your server is overloaded, a browser that wants to turn into a buyer will not be able to, and you will lose customers. "Instant Magento Performance Optimization How-To" is a practical, hands-on guide that provides you with a number of clear, step-by-step exercises to help you reach a high performance level for your Magento stores and keep your customers satisfied.This book looks at tweaks and tips used to boost your Magento Performance, and breaks down the confusion that surrounds the subject.You will learn how to compress your pages, styles, and scripts by almost 80%. We will also take a look at controversial optimization settings such as Magento core compilation or enabling all caching systems. You will discover new applications that improve performance. If you wish your e-businesses to grow and want to keep your customers satisfied, you definitely need this book.
Table of Contents (7 chapters)

Compiling (Must know)


The term compilation could mislead you if you are used to programming in C or any other compiled language. The Magento compilation we will learn here only gathers PHP files together.

How to do it...

To enable the compilation, navigate to System | Tool | Compilation.

When the page is loaded, click on the Run Compilation Process button and wait for a while for the task to be completed. The following table shows the data with compilation enabled:

Type

Requests

Load time

Size

Overall (before)

49

2.58 seconds

724.3 KB

Overall (after)

49

2.18 seconds

724.3 KB

Here we go, another half a second less in comparison with the base test.

How it works...

This option will gather all PHP classes scattered all over the Magento framework into one folder. The main goal is to speed up the look-up process on the server; it is an operation done by the PHP core in order to find dependent classes and libraries scattered all over your server's filesystem. If the files are all together, the look-up operation will be easier.