FlyCV icon indicating copy to clipboard operation
FlyCV copied to clipboard

ThreadPool线程个数

Open ximitiejiang opened this issue 2 years ago • 1 comments

请教下为什么线程池仅设置线程个数为1或者2?难道不应该是cpu核数吗? ThreadPool::ThreadPool() : _active_wait(10000) { _thread_num = get_cpu_num() > 1 ? 2 : 1; }

ximitiejiang avatar Jan 29 '23 15:01 ximitiejiang

因为目前主要是arm端优化,所以这块默认固定2线程以下,后续我们会进行完善。

TomasRan avatar Jan 30 '23 02:01 TomasRan