DragonFly commits List (threaded) for 2006-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/lib/libthread_xu/thread thr_mutex.c
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]