From f8d38a180e2b060d5bc8f02e3af5487912cfb68c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 22 Aug 2008 15:15:02 +0000 Subject: [PATCH] according to vraa's profiling, the highest CPU hit other than encryption is in peerPulse(). do we really need to call it every 50 msec? change the peerPulse() interval to 250 msec. --- libtransmission/peer-msgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index 012c7f8d8..09b2ea9d3 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -68,7 +68,7 @@ enum KEEPALIVE_INTERVAL_SECS = 100, PEX_INTERVAL = (90 * 1000), /* msec between sendPex() calls */ - PEER_PULSE_INTERVAL = (50), /* msec between peerPulse() calls */ + PEER_PULSE_INTERVAL = (250), /* msec between peerPulse() calls */ RATE_PULSE_INTERVAL = (250), /* msec between ratePulse() calls */ MAX_QUEUE_SIZE = (100),