aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-03-25 10:49:58 -0400
committerJack Lloyd <[email protected]>2019-03-26 10:05:51 -0400
commita044a7520aaeef15e170819bd3b22a575aee58cb (patch)
tree397b0236a4eaeb9f24971a2a81a0a1d7749bfbed /src/lib/utils
parentd9026650285523ca82e98066d507dbb39240f278 (diff)
Use the global thread pool for XMSS signatures
* i7-6700K (4 core w/SMT): 10% improvements * Ryzen 7 2700 (8 core w/SMT): 25% improvement except SHA-256 which is over twice as fast. * POWER8 (160 cores w/SMT): between 25 and 60% faster
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/thread_utils/thread_pool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils/thread_utils/thread_pool.h b/src/lib/utils/thread_utils/thread_pool.h
index d48975090..974b62d79 100644
--- a/src/lib/utils/thread_utils/thread_pool.h
+++ b/src/lib/utils/thread_utils/thread_pool.h
@@ -40,6 +40,8 @@ class BOTAN_TEST_API Thread_Pool
void shutdown();
+ size_t worker_count() const { return m_workers.size(); }
+
Thread_Pool(const Thread_Pool&) = delete;
Thread_Pool& operator=(const Thread_Pool&) = delete;