Skip to content
Snippets Groups Projects
  1. Jun 02, 2014
    • Nick Mathewson's avatar
      Avoid needless router_dir_info_has_changed from router_set_status · ad8977e3
      Nick Mathewson authored
      On some profiles of Andrea's from #11332, I found that a great deal
      of time can still be attributed to functions called from
      update_router_have_minimum_dir_info().  This is making our
      digestmap, tor_memeq, and siphash functions take a much bigger
      portion of runtime than they really should.
      
      If we're calling update_router_have_minimum_dir_info() too often,
      that's because we're calling router_dir_info_changed() too often.
      And it looks like most of the callers of router_dir_info_changed()
      are coming as tail-calls from router_set_status() as invoked by
      channel_do_open_actions().
      
      But we don't need to call router_dir_info_changed() so much!  (I'm
      not quite sure we need to call it from here at all, but...) Surely
      we don't need to call it from router_set_status when the router's
      status has not actually changed.
      
      This patch makes us call router_dir_info_changed() from
      router_set_status only when we are changing the router's status.
      
      Fix for bug 12170.  This is leftover from our fix back in 273ee3e8
      in 0.1.2.1-alpha, where we started caching the value of
      update_router_have_minimum_dir_info().
      ad8977e3
  2. May 16, 2014
  3. May 08, 2014
  4. May 01, 2014
  5. Apr 30, 2014
  6. Apr 29, 2014
  7. Apr 25, 2014
  8. Apr 23, 2014
  9. Apr 18, 2014
  10. Apr 17, 2014
    • Nick Mathewson's avatar
      Elevate server TLS cipher preferences over client · 0b319de6
      Nick Mathewson authored
      The server cipher list is (thanks to #11513) chosen systematically to
      put the best choices for Tor first.  The client cipher list is chosen
      to resemble a browser.  So let's set SSL_OP_CIPHER_SERVER_PREFERENCE
      to have the servers pick according to their own preference order.
      0b319de6
  11. Apr 16, 2014
  12. Apr 15, 2014
  13. Apr 14, 2014
  14. Apr 09, 2014
  15. Apr 08, 2014
  16. Apr 02, 2014
  17. Mar 27, 2014
  18. Mar 20, 2014
  19. Mar 11, 2014
  20. Mar 10, 2014
Loading