Changeset 13782


Ignore:
Timestamp:
Jan 9, 2013, 12:33:00 AM (8 years ago)
Author:
jordan
Message:

increase the per-peer prefetch count from 12 to 18. Add a symbolic constant for it.

File:
1 edited

Legend:

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

    r13683 r13782  
    8686    /* number of pieces we'll allow in our fast set */
    8787    MAX_FAST_SET_SIZE = 3,
     88
     89    /* how many blocks to keep prefetched per peer */
     90    PREFETCH_SIZE = 18,
    8891
    8992    /* defined in BEP #9 */
     
    11991202        return;
    12001203
    1201     /* Maintain 12 prefetched blocks per unchoked peer */
    1202     for (i=msgs->prefetchCount; i<msgs->peer->pendingReqsToClient && i<12; ++i)
     1204    for (i=msgs->prefetchCount; i<msgs->peer->pendingReqsToClient && i<PREFETCH_SIZE; ++i)
    12031205    {
    12041206        const struct peer_request * req = msgs->peerAskedFor + i;
Note: See TracChangeset for help on using the changeset viewer.