Ignore:
Timestamp:
Jul 24, 2007, 2:51:46 PM (14 years ago)
Author:
charles
Message:

faster tr_cpGetStatus() and tr_bitfieldHas(), which were showing up at the top of the CPU profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r2478 r2479  
    100100int tr_cpPieceIsComplete( const tr_completion_t * cp, int piece )
    101101{
    102     return tr_bitfieldHas( cp->pieceBitfield, piece );
     102    return cp->completeBlocks[piece] >= tr_cpCountBlocks(cp,piece);
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.