Ignore:
Timestamp:
Jun 3, 2009, 10:52:08 PM (13 years ago)
Author:
charles
Message:

(trunk libT) lessen evbuffer memory bloat when we have a lot of simultaneous peers

File:
1 edited

Legend:

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

    r8592 r8605  
    641641    const double maxBlockSize = 16 * 1024; /* 16 KiB is from BT spec */
    642642    const double currentSpeed = tr_bandwidthGetPieceSpeed( &io->bandwidth, now, TR_UP );
    643     const double period = 20; /* arbitrary */
    644     const double numBlocks = 5.5; /* the 5 is arbitrary; the .5 is to leave room for messages */
     643    const double period = 15; /* arbitrary */
     644    const double numBlocks = 3.5; /* the 3 is arbitrary; the .5 is to leave room for messages */
    645645    return MAX( maxBlockSize*numBlocks, currentSpeed*1024*period );
    646646}
Note: See TracChangeset for help on using the changeset viewer.