informatique:php:performance
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
informatique:php:performance [16/04/2010 09:59] – cyrille | informatique:php:performance [19/05/2012 00:18] – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
Profile you code before you start optimizing it! Otherwise it would be like travelling around a foreign city with signs written in an unreadable language witout any map or GPS. You’ll probably get somewhere, but you wouldn’t have any idea where you are, where you should go and how far are you from the place you need to be. Profiling would allow you to know which parts of code are worth investing into and which aren’t. You can use [[http:// | Profile you code before you start optimizing it! Otherwise it would be like travelling around a foreign city with signs written in an unreadable language witout any map or GPS. You’ll probably get somewhere, but you wouldn’t have any idea where you are, where you should go and how far are you from the place you need to be. Profiling would allow you to know which parts of code are worth investing into and which aren’t. You can use [[http:// | ||
+ | [[http:// | ||
+ | xdebug.auto_trace = On | ||
+ | xdebug.show_mem_delta = On | ||
==== Caching ==== | ==== Caching ==== | ||
Ligne 25: | Ligne 28: | ||
==== Optimize your data ==== | ==== Optimize your data ==== | ||
- | Usually the most expensive places of the PHP application are where it accesses external data – namely, database or filesystem | + | Usually the most expensive places of the PHP application are where it accesses external data – namely, database or file system |
==== Avoid extra notices/ | ==== Avoid extra notices/ |
informatique/php/performance.txt · Dernière modification : 23/07/2016 13:49 de cyrille