summaryrefslogtreecommitdiff
path: root/doc/TODO.021
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-18 17:19:04 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-18 17:19:04 +0000
commitbf80e2df3fe48f81c69bb68887376b02ab247e5f (patch)
treed95e835992abf9a2bad5954042ea38e5a6a9df3c /doc/TODO.021
parentb91335117f9faf84001acc65859886e4ddc267a5 (diff)
downloadtor-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 'doc/TODO.021')
-rw-r--r--doc/TODO.0212
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/TODO.021 b/doc/TODO.021
index b5e766b808..d8aa04084a 100644
--- a/doc/TODO.021
+++ b/doc/TODO.021
@@ -362,7 +362,7 @@ R d Do we want to maintain our own set of entryguards that we use as
"who can change what" in local_routerstatus explicit. Make
local_routerstatus (or equivalent) subsume all places to go for "what
router is this?"
- - Don't call time(NULL) so much; instead have a static time_t field
+ o Don't call time(NULL) so much; instead have a static time_t field
that gets updated only a handful of times per second.
- Refactor unit tests into multiple files