cvs commit: src/lib/libthread_xu/thread thr_mutex.c

David Xu bsddiy at 126.com
Fri Apr 7 16:09:35 PDT 2006


Matthew Dillon wrote:

>     Just on general principle, don't over-use those branch-prediction
>     macros.  They add a lot of confusion to the code for virtually no
>     gain in performance.  The less you use them, the better things will
>     be.
> 
> -Matt

Normally, it will improve static branch prediction, pthread_mutex_lock
is so critical, I want to reduce any overhead, it is still slower than
NPTL because I have to do extra test to dynamically initialize mutex.

David Xu






More information about the Commits mailing list