mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
1e77376e1a
All node_get_all_orports() does is allocate and return a smartlist with at most two tor_addr_port_t members that match ORPort's of node configuration. This is harmful for memory efficiency, as it allocates the same stuff every time it is called. However, node_is_a_configured_bridge() does not need to call it, as it already has all the information to check if there is configured bridge for a given node. The new code is arranged in a way that hopefully makes each succeeding linear search through bridge_list less likely.
6 lines
224 B
Plaintext
6 lines
224 B
Plaintext
o Minor bugfixes (performance)::
|
|
- Rework node_is_a_configured_bridge() to no longer
|
|
call node_get_all_orports(), which was performing too
|
|
many memory allocations. Fixes bug 27224; bugfix on
|
|
0.2.3.9.
|