Official eMule-Board: Trivial Optimization @uploadbandwidththrottler::runinternal - Official eMule-Board

Jump to content


Page 1 of 1

Trivial Optimization @uploadbandwidththrottler::runinternal

#1 User is offline   taz-me 

  • I'm taz (a modder)
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 587
  • Joined: 07-December 06

Post icon  Posted 22 December 2008 - 12:42 PM

...
// Equal bandwidth for all slots
uint32 maxSlot = (uint32)m_StandardOrder_list.GetSize();
// By Taz - optimization
/*
if(maxSlot > 0 && allowedDataRate/maxSlot < UPLOAD_CLIENT_DATARATE)
*/
if(maxSlot > allowedDataRate/UPLOAD_CLIENT_DATARATE)
// <------- optimization
maxSlot = allowedDataRate/UPLOAD_CLIENT_DATARATE;
}
...
P2P is about sharing, ed2k is my choice !
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users