libT: first cut at implementing the internal peers' request queues as pieces rather than blocks, as discussed with erdgeist and denis, to avoid a couple of nasty CPU bottlenecks.

This commit is contained in:
Charles Kerr
2008-06-09 22:53:45 +00:00
parent dd715ccaf6
commit dce24eb1f0
10 changed files with 218 additions and 290 deletions

View File

@@ -263,12 +263,14 @@ size_t tr_bitfieldCountTrueBits( const tr_bitfield* );
tr_bitfield* tr_bitfieldOr( tr_bitfield*, const tr_bitfield* );
#if 0
/** @brief finds the first true bit in the bitfield, starting at `startPos'
@param setmePos the position of the true bit, if found, is set here.
@return nonzero if a true bit was found */
int tr_bitfieldFindTrue( const tr_bitfield * bitfield,
size_t startPos,
size_t * setmePos );
#endif
/** A stripped-down version of bitfieldHas to be used