Skip to content

Commit d71a712

Browse files
ahupowerdnsmind04
authored andcommitted
with thanks to Jack Lloyd, this works around the default Botan allocator slowing down for us during production use.
1 parent 96963e2 commit d71a712

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pdns/botansigners.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ struct LoaderBotanStruct
255255
{
256256
new Botan::LibraryInitializer("thread_safe=true");
257257
// this leaks, but is fine
258+
Botan::global_state().set_default_allocator("malloc"); // the other Botan allocator slows down for us
259+
258260
DNSCryptoKeyEngine::report(5, &BotanRSADNSCryptoKeyEngine::maker);
259261
DNSCryptoKeyEngine::report(7, &BotanRSADNSCryptoKeyEngine::maker);
260262
DNSCryptoKeyEngine::report(8, &BotanRSADNSCryptoKeyEngine::maker);

0 commit comments

Comments
 (0)