]> granicus.if.org Git - pdns/commitdiff
with thanks to Jack Lloyd, this works around the default Botan allocator slowing...
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 13 Dec 2014 14:43:12 +0000 (15:43 +0100)
committermind04 <mind04@monshouwer.org>
Mon, 22 Dec 2014 19:36:18 +0000 (20:36 +0100)
pdns/botansigners.cc

index 78b756dc172f1297df4f76c428e79d6d7d2f62f2..20b00adc597802743901d971ee3b58c88e9486a9 100644 (file)
@@ -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);