Skip to content
  • Nick Mathewson's avatar
    Fix gprof bottlenecks on exit nodes found by Jacob. · b262e765
    Nick Mathewson authored
    Apparently all the stuff that does a linear scan over all the DNS
    cache entries can get really expensive when your DNS cache is very
    large.  It's hard to say how much this will help performance, since
    gprof doesn't count time spent in OpenSSL or zlib, but I'd guess 10%.
    
    Also, this patch removes calls to assert_connection_ok() from inside
    the read and write callbacks, which are similarly unneeded, and a
    little costlier than I'm happy with.
    
    This is probably worth backporting to 0.2.0.
    b262e765
To find the state of this project's repository at the time of any of these versions, check out the tags.