Changes between Initial Version and Version 1 of Ticket #4209, comment 6


Ignore:
Timestamp:
Apr 27, 2011, 5:31:28 AM (12 years ago)
Author:
charles
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4209, comment 6

    initial v1  
    1 (trunk libT) #4209 "Shortcut UDP tracker test" -- prioritize the UDP handler functions based on frequency (uTP, DHT, UTP tracker) as outlined by jch in comment:5. Also, don't call the uTP or DHT handlers when uTP or DHT is disabled in the system preferences.
     1r12382:
    22
    3 To avoid the function call overhead described by jch, instead of calling tr_sessionIsUTPEnabled() and tr_sessionIsDHTEnabled(), we test for WITH_UTP to be defined and test the tr_session.isUTPEnabled and tr_session.isDHTEnabled flags directly.
     3> (trunk libT) #4209 "Shortcut UDP tracker test" -- prioritize the UDP handler functions based on frequency (uTP, DHT, UTP tracker) as outlined by jch in comment:5. Also, don't call the uTP or DHT handlers when uTP or DHT is disabled in the system preferences.
     4>
     5> To avoid some of the extra function call overhead described by jch, we avoid calling calling tr_sessionIsUTPEnabled() and tr_sessionIsDHTEnabled(), and instead apply those simple tests by hand.