Skip to content

Instantly share code, notes, and snippets.

@azazqadir
Created September 29, 2018 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azazqadir/9a9231395488c082ea5494a55987f972 to your computer and use it in GitHub Desktop.
Save azazqadir/9a9231395488c082ea5494a55987f972 to your computer and use it in GitHub Desktop.
PHP Performance Optimization Tips
  • Consider using the swoole extension. Some applications can run 30 times faster. Be sure you understand how it works.

  • Use cache wherever possible in order to reduce the amount of DB queries. Optimize the DB queries too, these are often the performance bottleneck of any web application regardless of the stacks / frameworks that are used.

  • varnish for full page caching & redis for session caching but it’s the best choice IMO.

Read Tons of More Tips on PHP Performance Optimization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment