爱程序网

PHP 优化详解

来源: 阅读:

笔者收集的这些技巧来源较广,完整性不能保证。 由于数量较多,这些优化技巧没有经过测试。请各位看官在使用之前自行测试,毕竟这些技巧是否能派上用场,还是需要由PHP所在的独特环境所决定的。

目录索引

  1. 找到瓶颈(Finding the Bottleneck)
  2. 缓存 (Caching)
  3. 编译 vs. 解释(Compiling vs. Interpreting)
  4. 代码减肥 (Content Reduction)
  5. 多线程与多进程(Multithreading & Multiprocessing)
  6. 字符串(Strings)
  7. 正则表达式(Regular Expressions)
  8. 迭代结构 (Iteration Constructs (for, while))
  9. 选择结构 (Selection Constructs (if, switch))
  10. 函数与参数 (Functions & Parameters)
  11. 面向对象结构 (Object-Oriented Constructs)
  12. Session处理 (Session Handling)
  13. 类型转换 (Type Casting)
  14. 压缩(Compression)
  15. 错误处理(Error Handling)
  16. 声明、定义与范围(Declarations, Definitions, & Scope)
  17. 内存泄漏(Memory Leaks)
  18. 不要重复发明轮子(Don’t Reinvent the Wheel)
  19. 代码优化(Code Optimization)
  20. 使用RAM(Using RAM Instead of DASD)
  21. 使用服务(Using Services (e.g., SQL))
  22. 安装与配置(Installation & Configuration)
  23. 其他(Other)
 

Tags:PHP 优化详解