Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ul> <li><p>Using a <strong><a href="http://en.wikipedia.org/wiki/PHP_accelerator" rel="nofollow noreferrer">PHP opcode cache</a></strong> will dramatically cut down on the time taken to open and compile PHP scripts, by skipping the parsing and compilation into bytecode.</p></li> <li><p>Turning on the <strong><a href="http://dev.mysql.com/doc/refman/5.1/en/query-cache.html" rel="nofollow noreferrer">MySQL query cache</a></strong> is generally (though not always) a good idea.</p></li> <li><p>Rather than focusing on the number of queries, focus on reducing the time those queries take by <strong>optimising your queries</strong>. It is often much more efficient to have a larger number of small, optimised queries than to try and reduce the number of queries.</p></li> <li><p><strong>Use a profiler</strong> such as the one built in to <a href="http://www.xdebug.org/" rel="nofollow noreferrer">XDebug</a>. Together with an interpreter like KCacheGrind or WinCacheGrind, optimising code really helps when you know what to focus on. It's not worth optimising something that contributes only a negligible amount to your total execution time. It's worth getting to know what everything in *CacheGrind means.</p></li> </ul> <p>My PHP content management system usually loads a page in about the same amount of time (down to minimum 8ms where everything is a cache hit). But very occasionally, when you do something complex it may take over 500ms. When concerned about user experience the typical time is more important, not so much the outliers, but when concerned about server load the average time is more important, so those 500ms outliers are suddenly quite important.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload