re: ZTS performance

From: Date: Mon, 24 Mar 2003 14:07:07 +0000
Subject: re: ZTS performance
Groups: php.internals 
Request: Send a blank email to internals+get-210@lists.php.net to get a copy of this message
one observation i have is that in certain frequently called routines, TSRMLS_FETCH() is called rather than having the the thread environment passed in. zval_dtor comes immediately to mind (this only affects objects). the other thing that i wonder about is the current practice of macro access to fields of TLS globals, rather than a single fetch of a pointer to the global structure, then dereferencing from there. if you look at at zend_execute.c, you'll see what i mean. this is just an amateur's opinion, since i dont know the cost of macro call involved in such accesses. it just seems to me to be more efficient to incur the overhead once (whatever it is), and deref from there. l0t3k "Wojtek Meler" <wmeler@wp-sa.pl> wrote in message news:20030324135821.E31290@wp-sa.pl... > Hi! > > Does anyone have any suggestions ? Maybe I should use different thread library ? > Maybe TSRM should be rewritten ? > Does anyone have any similar results (with code caching) ? > > regards, > Wojtek

« previous php.internals (#210) next »