[tor-bugs] #6177 [Tor Hidden Services]: Refactor rend_service_introduce()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Jun 19 13:46:01 UTC 2012


#6177: Refactor rend_service_introduce()
---------------------------------+------------------------------------------
 Reporter:  andrea               |          Owner:                  
     Type:  task                 |         Status:  new             
 Priority:  minor                |      Milestone:  Tor: unspecified
Component:  Tor Hidden Services  |        Version:                  
 Keywords:                       |         Parent:                  
   Points:                       |   Actualpoints:                  
---------------------------------+------------------------------------------

Comment(by nickm):

 Replying to [comment:2 andrea]:
 > Which automated complexity metrics do you have in mind?

 Frankly, I know very little about the field; I was hoping you might know
 some. The only one I could name off the top of my head is "Cyclomatic
 Complexity", which is pretty old.  On the plus side, there seem to be a
 lot of tools to calculate it.  Following the links from that article on
 Wikipedia turned up some other measures I hadn't heard of, some of which
 seem to be proprietary. A simpler measurements to look at might be loc-
 per-function; a more historically focused approach might be to look at the
 total number of git commits affecting a function (on the theory that
 volatility is problematic).

 Personally, I think if we pick a not-too-stupid measurement and have a
 look at all the functions where it's high, we'll do a good job of finding
 functions to simplify--just so long as we don't make a religion out of
 minimizing the metric for its own sake.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6177#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list