[cfe-dev] Thread pool for llvm::CrashRecoveryContext::RunSafelyOnThread ?

Dmitri Gribenko gribozavr at gmail.com
Mon Apr 28 12:43:35 PDT 2014


On Mon, Apr 28, 2014 at 7:04 PM, Milian Wolff <mail at milianw.de> wrote:
> Would it not be better, performance-wise, to recycle the threads in a thread
> pool?

This certainly could give us some speedup.  How much does
pthread_create() cost on your system?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list