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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php