pthread_getspecific is too slow

2013-09-25 Thread John Carr
Problem in a nutshell: pthread_getspecific serializes execution of threads using it. Without a better implementation my program doesn't work on OpenBSD. I am trying to port Cilk+ to OpenBSD (5.3). Cilk+ is a multithreaded extension to C/C++. It adds some bookkeeping operations in the prologue

Re: pthread_getspecific is too slow

2013-09-25 Thread Ted Unangst
We haven't done a lot of work to optimize performance except in response to specific issues. Sounds like you found one. Would you mind providing a test case? I just want to make sure we fix the right thing. On Wed, Sep 25, 2013 at 13:12, John Carr wrote: Problem in a nutshell: