Performance tuning PHP5
| From: | Sterling Hughes | Date: | Wed, 21 May 2003 00:38:52 +0000 |
| Subject: | Performance tuning PHP5 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-1832@lists.php.net to get a copy of this message | ||
Hey,
I've been benchmarking the PHP5 and PHP4. Found a neat little way to
improve the performance like crazy. Go into zend_mm.h and change:
#define ZEND_MM
To:
#undef ZEND_MM
And touch zend_alloc.c, recompile, and then rebenchmark. My tests show
a 15-20% performance improvement *across the board* between before and
after. This probably increases if you're using a webserver like apache,
where the memory manager really screws things up.
-Sterling
--
"C makes it easy to shoot yourself in the foot; C++ makes it harder,
but when you do, it blows away your whole leg."
- Bjarne Stroustrup