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. |