diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-25 16:41:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-25 16:41:22 +0200 |
commit | 303334e67262bb6121dfbd245c66535f259d08af (patch) | |
tree | 1a92109915ffe63b7e2815edc6a6355f4065a48c /src/gns/gnunet-gns-proxy.c | |
parent | 3c62493eb1aaa74812bbb79431686d99652417f4 (diff) | |
download | gnunet-303334e67262bb6121dfbd245c66535f259d08af.tar.gz gnunet-303334e67262bb6121dfbd245c66535f259d08af.zip |
enable caching private->public key mapping in memory to improve CPU consumption for large zone insertions
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 8b9aa599e..08663a57e 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -855,9 +855,9 @@ mhd_content_cb (void *cls, | |||
855 | return MHD_CONTENT_READER_END_OF_STREAM; | 855 | return MHD_CONTENT_READER_END_OF_STREAM; |
856 | } | 856 | } |
857 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 857 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
858 | "Writing %lu/%lu bytes\n", | 858 | "Writing %llu/%llu bytes\n", |
859 | bytes_to_copy, | 859 | (unsigned long long) bytes_to_copy, |
860 | s5r->io_len); | 860 | (unsigned long long) s5r->io_len); |
861 | GNUNET_memcpy (buf, | 861 | GNUNET_memcpy (buf, |
862 | s5r->io_buf, | 862 | s5r->io_buf, |
863 | bytes_to_copy); | 863 | bytes_to_copy); |
@@ -1307,12 +1307,12 @@ curl_download_cb (void *ptr, | |||
1307 | if (sizeof (s5r->io_buf) - s5r->io_len < total) | 1307 | if (sizeof (s5r->io_buf) - s5r->io_len < total) |
1308 | { | 1308 | { |
1309 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1309 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1310 | "Pausing CURL `%s%s' download, not enough space %lu %lu %lu\n", | 1310 | "Pausing CURL `%s%s' download, not enough space %llu %llu %llu\n", |
1311 | s5r->domain, | 1311 | s5r->domain, |
1312 | s5r->url, | 1312 | s5r->url, |
1313 | sizeof (s5r->io_buf), | 1313 | (unsigned long long) sizeof (s5r->io_buf), |
1314 | s5r->io_len, | 1314 | (unsigned long long) s5r->io_len, |
1315 | total); | 1315 | (unsigned long long) total); |
1316 | return CURL_WRITEFUNC_PAUSE; /* not enough space */ | 1316 | return CURL_WRITEFUNC_PAUSE; /* not enough space */ |
1317 | } | 1317 | } |
1318 | GNUNET_memcpy (&s5r->io_buf[s5r->io_len], | 1318 | GNUNET_memcpy (&s5r->io_buf[s5r->io_len], |