Changeset 5976


Ignore:
Timestamp:
May 30, 2008, 3:40:46 PM (14 years ago)
Author:
charles
Message:

minor speedups in tr_torrentStat() and in bitfield manipulation

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r5954 r5976  
    742742
    743743
    744     {
     744    if( !s->leftUntilDone )
     745        s->desiredAvailable = 0;
     746    else {
    745747        tr_piece_index_t i;
    746748        tr_bitfield * peerPieces = tr_peerMgrGetAvailable( tor->handle->peerMgr,
  • trunk/libtransmission/utils.c

    r5899 r5976  
    741741
    742742    bitfield->bits[i] |= ands[nth&7u];
    743     assert( tr_bitfieldHas( bitfield, nth ) );
     743    /*assert( tr_bitfieldHas( bitfield, nth ) );*/
    744744    return 0;
    745745}
     
    772772
    773773    bitfield->bits[i] &= rems[nth&7u];
    774     assert( !tr_bitfieldHas( bitfield, nth ) );
     774    /*assert( !tr_bitfieldHas( bitfield, nth ) );*/
    775775    return 0;
    776776}
Note: See TracChangeset for help on using the changeset viewer.