Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1861 invoked from network); 21 May 2003 02:05:02 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 21 May 2003 02:05:02 -0000 Received: from [192.168.1.101] (ip216-179-71-153.cust.bestweb.net [216.179.71.153]) by carmine.bestweb.net (Postfix) with ESMTP id 9CB8A2325B for ; Tue, 20 May 2003 21:04:42 -0500 (EST) To: internals@lists.php.net Content-Type: text/plain Organization: Message-ID: <1053477532.24469.17.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 20 May 2003 20:38:52 -0400 Content-Transfer-Encoding: 7bit Subject: Performance tuning PHP5 From: sterling@bumblebury.com (Sterling Hughes) 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