At 10:20 PM 3/24/2003 +0100, [EMAIL PROTECTED] wrote:
> ZTS is *always* going to be slower than non ZTS.

Yes, but it can be faster than it is. PHP doesn't use almost any shared
resources (compiled regexs?) so why it is so slow ? Thread-safe syscalls
? I don't think so.

Hmm, not worth arguing with you if you're so sure you know how PHP doesn't need any per-thread resources. It does...



> There's no need for rewriting TSRM, it's roughly as fast as it can be.

Things changes ...
Now we have AD2003 and __thread keyword in gcc. I suppose that if we use
it we could get rid of all this TSRMLS*. I know - PHP is not for linux
only - but we could have it in TSRM implementation.
I'm sure that compiler will optimize it better if __thread keyword will
be used instead of TSRMLS*.

I'm not sure how __thread works but the TSRM implementation already uses thread local storage to cache the per-thread objects. Not sure __thread doesn't do the same.


Andi


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to