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: auth-3.4.2~15^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d71a712b3c7d180db970ef849960fe59ebc21a74;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 78b756dc17..20b00adc59 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);