[tor-bugs] #6538 [Tor Client]: Use bit-twiddling tricks to make choose-by-bandwith algorithm even more time-invariant
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Aug 24 19:58:29 UTC 2012
#6538: Use bit-twiddling tricks to make choose-by-bandwith algorithm even more
time-invariant
-------------------------+--------------------------------------------------
Reporter: nickm | Owner:
Type: enhancement | Status: needs_review
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by rransom):
Replying to [comment:14 nickm]:
> wrt the scale issue, I'm seeing typical values that suggest that the
integer roundoff doesn't matter much here. Is their counterveiling
evidence?
Whether integer roundoff matters or not depends on the current value of
`weight_scale`.
Also, are you sure that the C comparison operator you want to leave in
(`tmp > rand_bw`) will be implemented in constant time on 32-bit systems?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6538#comment:15>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list