Re: Optimizing emalloc and friends

From: Date: Sun, 25 May 2003 02:46:07 +0000
Subject: Re: Optimizing emalloc and friends
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1975@lists.php.net to get a copy of this message
The patch is where..? Try suffixing the file name of the attachment with ".txt"; this tip is known to work with Outlook Express at least. Moriyoshi marcus.boerger@t-online.de (Marcus Börger) wrote: > 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

« previous php.internals (#1975) next »