diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-18 17:19:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-18 17:19:04 +0000 |
commit | bf80e2df3fe48f81c69bb68887376b02ab247e5f (patch) | |
tree | d95e835992abf9a2bad5954042ea38e5a6a9df3c /src/or/connection_edge.c | |
parent | b91335117f9faf84001acc65859886e4ddc267a5 (diff) | |
download | tor-bf80e2df3fe48f81c69bb68887376b02ab247e5f.tar.gz tor-bf80e2df3fe48f81c69bb68887376b02ab247e5f.zip |
Replace calls to time(NULL) that occur on the order of once per read, one per write, or once per cell with calls to a function that looks at a cached value of time. This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow.
svn:r17690
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 3e2a43917e..620db73a62 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2159,7 +2159,7 @@ connection_ap_handshake_send_resolve(edge_connection_t *ap_conn) uint32_t a; size_t len = strlen(ap_conn->socks_request->address); char c = 0; - /* XXXX021 This logic is a little ugly: we check for an in-addr.arpa ending + /* XXXX This logic is a little ugly: we check for an in-addr.arpa ending * on the address. If we have one, the address is already in the right * order, so we'll leave it alone later. Otherwise, we reverse it and * turn it into an in-addr.arpa address. */ |