[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: perf_replies: disabled limit for
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: perf_replies: disabled limit for maximum number of automatic threads |
Date: |
Wed, 06 Sep 2023 16:45:00 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 194b1222 perf_replies: disabled limit for maximum number of automatic
threads
194b1222 is described below
commit 194b1222c69875e8c3e76ba4d55ea0e8d136ac16
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 6 17:44:53 2023 +0300
perf_replies: disabled limit for maximum number of automatic threads
---
src/tools/perf_replies.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/tools/perf_replies.c b/src/tools/perf_replies.c
index 9f2a5305..fdec7e8e 100644
--- a/src/tools/perf_replies.c
+++ b/src/tools/perf_replies.c
@@ -267,7 +267,9 @@ static unsigned int num_threads = 0;
static unsigned int
get_num_threads (void)
{
+#if 0 /* disalbed code */
static const unsigned int max_threads = 32;
+#endif /* disalbed code */
if (0 < num_threads)
return num_threads;
@@ -291,12 +293,14 @@ get_num_threads (void)
num_threads = num_proc_cpus;
}
}
+#if 0 /* disalbed code */
if (max_threads < num_threads)
{
printf ("Number of threads are limited to %u as more threads "
"are unlikely to improve the performance.\n", max_threads);
num_threads = max_threads;
}
+#endif /* disalbed code */
return num_threads;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: perf_replies: disabled limit for maximum number of automatic threads,
gnunet <=