From d71a712b3c7d180db970ef849960fe59ebc21a74 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sat, 13 Dec 2014 15:43:12 +0100 Subject: [PATCH] with thanks to Jack Lloyd, this works around the default Botan allocator slowing down for us during production use. --- pdns/botansigners.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/botansigners.cc b/pdns/botansigners.cc index 78b756dc1..20b00adc5 100644 --- a/pdns/botansigners.cc +++ b/pdns/botansigners.cc @@ -255,6 +255,8 @@ struct LoaderBotanStruct { new Botan::LibraryInitializer("thread_safe=true"); // this leaks, but is fine + Botan::global_state().set_default_allocator("malloc"); // the other Botan allocator slows down for us + DNSCryptoKeyEngine::report(5, &BotanRSADNSCryptoKeyEngine::maker); DNSCryptoKeyEngine::report(7, &BotanRSADNSCryptoKeyEngine::maker); DNSCryptoKeyEngine::report(8, &BotanRSADNSCryptoKeyEngine::maker); -- 2.40.0