Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1973 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74075 invoked from network); 25 May 2003 01:35:44 -0000 Received: from unknown (HELO mailout06.sul.t-online.com) (194.25.134.19) by pb1.pair.com with SMTP; 25 May 2003 01:35:44 -0000 Received: from fwd04.sul.t-online.de by mailout06.sul.t-online.com with smtp id 19JkQK-0005Vc-00; Sun, 25 May 2003 03:35:44 +0200 Received: from baumbart.marcus-boerger.de (520072483730-0001@[80.142.146.245]) by fwd04.sul.t-online.com with esmtp id 19JkQJ-08HwPIC; Sun, 25 May 2003 03:35:43 +0200 Reply-to:marcus.boerger@post.rwth-aachen.de Message-ID: <5.1.0.14.2.20030525032449.02ff6590@mailbox.rwth-aachen.de> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 25 May 2003 03:35:21 +0200 To: internals@lists.php.net,Zeev@zend.com,Andi Gutmans Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_1170282406==_" X-Sender: 520072483730-0001@t-dialin.net Subject: Optimizing emalloc and friends From: marcus.boerger@t-online.de ((Marcus =?iso-8859-1?Q?B=F6rger?=)) --=====================_1170282406==_ Content-Type: text/plain; charset="us-ascii"; format=flowed Hi, the attached patch is the beginning of introducing emalloc_t and friends to the engine which passes TSRM information to emalloc. Or to be correct when the full work is done the _emalloc calls are replaced by _emalloc_t calls which no longer need to do TSRMLS_FETCH(). As you can see i haven't done everything but from what i measured so far i'd expect a performance increase of about 10%. Also when all is done there will be NO difference when in non ZTS mode. And since i left the old function names as inline funcs the API doesn't even change. However it is a good idea to change all the _emalloc calls to the new _emalloc_t calls as i've done with the streams stuff already. If we can find a consensus here i'll work that stuff out and apply it asap. regards marcus --=====================_1170282406==_--