Changeset 5738


Ignore:
Timestamp:
May 1, 2008, 7:31:58 PM (14 years ago)
Author:
charles
Message:

experimental speed tweaks:
(1) increase the per-peer read buffer to the size of a block message
(2) pulse the peers more often
(3) reduce the tracker delay on startup

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r5588 r5738  
    3535#define IO_TIMEOUT_SECS 8
    3636
    37 /* arbitrary */
    38 #define TR_RDBUF (1024*8)
     37/* the size of a typical request message */
     38#define TR_RDBUF ((1024*16) + 13)
    3939
    4040/**
  • trunk/libtransmission/peer-msgs.c

    r5651 r5738  
    6868
    6969    PEX_INTERVAL            = (90 * 1000), /* msec between sendPex() calls */
    70     PEER_PULSE_INTERVAL     = (100),       /* msec between pulse() calls */
     70    PEER_PULSE_INTERVAL     = (50),        /* msec between pulse() calls */
    7171    RATE_PULSE_INTERVAL     = (250),       /* msec between ratePulse() calls */
    7272
     
    12881288            maybeSendFastAllowedSet( msgs );
    12891289            peerIsSeed = msgs->info->progress >= 1.0;
    1290             tr_peerMsgsSetChoke( msgs, clientIsSeed && peerIsSeed );
    12911290            fireNeedReq( msgs );
    12921291            break;
  • trunk/libtransmission/tracker.c

    r5724 r5738  
    879879    t->manualAnnounceAllowedAt  = ~(time_t)0;
    880880    t->name = tr_strdup( info->name );
    881     t->randOffset = tr_rand( 120 );
     881    t->randOffset = tr_rand( 30 );
    882882    memcpy( t->hash, info->hash, SHA_DIGEST_LENGTH );
    883883    escape( t->escaped, info->hash, SHA_DIGEST_LENGTH );
Note: See TracChangeset for help on using the changeset viewer.