From: bert hubert Date: Sat, 13 Dec 2014 14:43:12 +0000 (+0100) Subject: with thanks to Jack Lloyd, this works around the default Botan allocator slowing... X-Git-Tag: rec-3.7.0-rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd151fb333a4db598180b550f8a33b24adcf4274;p=thirdparty%2Fpdns.git with thanks to Jack Lloyd, this works around the default Botan allocator slowing down for us during production use. --- diff --git a/pdns/botansigners.cc b/pdns/botansigners.cc index 50475737ea..bc1c4a7271 100644 --- a/pdns/botansigners.cc +++ b/pdns/botansigners.cc @@ -254,10 +254,10 @@ struct LoaderBotanStruct { LoaderBotanStruct() { - if(getenv("NOBOTAN")) - return; 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);