mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Raise MIN_DL_PER_REQUEST to 32
This change should improve overhead for downloading small numbers of descriptors and microdescriptors by improving compression performance and lowering directory request overhead. Closes ticket 23220.
This commit is contained in:
+3
-2
@@ -4971,8 +4971,9 @@ max_dl_per_request(const or_options_t *options, int purpose)
|
||||
}
|
||||
|
||||
/** Don't split our requests so finely that we are requesting fewer than
|
||||
* this number per server. */
|
||||
#define MIN_DL_PER_REQUEST 4
|
||||
* this number per server. (Grouping more than this at once leads to
|
||||
* diminishing returns.) */
|
||||
#define MIN_DL_PER_REQUEST 32
|
||||
/** To prevent a single screwy cache from confusing us by selective reply,
|
||||
* try to split our requests into at least this many requests. */
|
||||
#define MIN_REQUESTS 3
|
||||
|
||||
Reference in New Issue
Block a user