• Embed Doc
  • Readcast
  • Collections
  • 4
    CommentGo Back
Download
 
Performance Tuning PHP
Performance Tuning PHP
2005-05-29
  
Performance Tuning PHP
January 23th 2004. Vancouver, CanadaIlia Alshanetskyhttp://talks.php.net/ 
© Copyright 2004 Ilia Alshanetsky
http://talks.php.net/show/perf_tunning/ [5/29/2005 3:48:38 PM]
 
Performance Tuning PHP
Performance Tuning PHP
2005-05-29
 1 
The first step to tuning PHP begins with compiling an optimized version of PHP.
q
 
Enable all compiler optimizations with
-O3
q
 
Make the compiler tune the code to your CPU via
-march
 
-mcpu
 UseCaution
q
 
Try to make the compiler use CPU specific features
-msse
 
-mmmx
 
-mfpmath=sse
Revised Build Procedure
export CFLAGS="-O3 -msse -mmmx -march=pentium3 -mcpu=pentium3 -funroll-loops -mfpmath=sse"./configuremakemake install
http://talks.php.net/show/perf_tunning/1 [5/29/2005 3:48:42 PM]
 
Performance Tuning PHP
Performance Tuning PHP
2005-05-29
  
Avoid useless bloat and compile only the extensions you need.Extensions that are rarely used, should be compiled as shared modulesand loaded by the few scripts requiring them.
--disable-all
is your friend.
http://talks.php.net/show/perf_tunning/2 [5/29/2005 3:48:45 PM]
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...

good docs to learn and explore

Thanks for sharing your knowledge with us. Much appreciated. Keep it up!

This seems just excellent. Big thumbs up.

You must be to leave a comment.
Submit
Characters: ...