From b1e96b69fd23f673e08feac8ebd2a0e3d1f8ddc2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 8 Mar 2021 15:36:30 +0100 Subject: [PATCH] Save 1.4 MiB of memory --- dnscrypt-proxy/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dnscrypt-proxy/main.go b/dnscrypt-proxy/main.go index 42ec964a..416d5e84 100644 --- a/dnscrypt-proxy/main.go +++ b/dnscrypt-proxy/main.go @@ -29,6 +29,7 @@ type App struct { func main() { TimezoneSetup() dlog.Init("dnscrypt-proxy", dlog.SeverityNotice, "DAEMON") + runtime.MemProfileRate = 0 seed := make([]byte, 8) crypto_rand.Read(seed)