Ignore:
Timestamp:
Apr 11, 2009, 3:24:36 AM (13 years ago)
Author:
charles
Message:

(trunk libT) omit some unnecessary tests on the bitfield checks. these seem small, but bitfields are always the top CPU abuser when I profile...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.h

    r8186 r8212  
    293293static TR_INLINE tr_bool tr_torrentIsPieceChecked( const tr_torrent  * tor, tr_piece_index_t i )
    294294{
    295     return tr_bitfieldHas( &tor->checkedPieces, i );
     295    return tr_bitfieldHasFast( &tor->checkedPieces, i );
    296296}
    297297
Note: See TracChangeset for help on using the changeset viewer.