-remove async ecc key generation, not needed
[oweals/gnunet.git] / src / util / gnunet-service-resolver.c
index 97eba6d11d2e7a14721bcdec5b350f3950032ddd..507ecf6618cd7d5781498d0db5941ecad5207aa0 100644 (file)
@@ -577,4 +577,19 @@ main (int argc, char *const *argv)
   return ret;
 }
 
+#ifdef LINUX
+#include <malloc.h>
+
+/**
+ * MINIMIZE heap size (way below 128k) since this process doesn't need much.
+ */
+void __attribute__ ((constructor)) GNUNET_ARM_memory_init ()
+{
+  mallopt (M_TRIM_THRESHOLD, 4 * 1024);
+  mallopt (M_TOP_PAD, 1 * 1024);
+  malloc_trim (0);
+}
+#endif
+
+
 /* end of gnunet-service-resolver.c */