mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
734ba5cb0a
We add a compression level argument to tor_zlib_new, and use it to determine how much memory to allocate for the zlib object. We use the existing level by default, but shift to smaller levels for small requests when we have been over 3/4 of our memory usage in the past half-hour. Closes ticket 11791.
5 lines
232 B
Plaintext
5 lines
232 B
Plaintext
o Minor features (directory, memory usage):
|
|
- When we have recently been under memory pressure (over 3/4 of
|
|
MaxMemInQueues is allocated), then allocate smaller zlib objects for
|
|
small requests. Closes ticket 11791.
|