aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-06-03 13:52:03 -0400
committerNick Mathewson <nickm@torproject.org>2009-06-03 13:52:03 -0400
commitb262e7656376a938fc149ae1bf280eeef81c6002 (patch)
tree16c3a8fee7b10c720fef14df73e53a3a19b6c80f /ChangeLog
parentc4c7dcd453b62b3d3bcc8e78df8455a77645e62a (diff)
downloadtor-b262e7656376a938fc149ae1bf280eeef81c6002.tar
tor-b262e7656376a938fc149ae1bf280eeef81c6002.tar.gz
Fix gprof bottlenecks on exit nodes found by Jacob.
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ae76b730..b2ba41351 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,12 @@
Changes in version 0.2.1.16-?? - 2009-??-??
+ o Major performance improvements (on 0.2.0.x):
+ - Disable and refactor some debugging checks that forced a linear scan
+ over the whole server-side DNS cache. These accounted for over 50%
+ of CPU time on a relatively busy exit node's gprof profile. Found by
+ Jacob.
+ - Disable some debugging checks that appeared in exit node profile
+ data.
+
o Minor bugfixes (on 0.2.0.x):
- Log correct error messages for DNS-related network errors on
Windows.