[tor-commits] [metrics-tasks/master] Make a note for atagar's OrderedDict suggestion (#6471).

karsten at torproject.org karsten at torproject.org
Wed Nov 7 13:29:23 UTC 2012


commit 44a529a4c87c4784ac4a0832cf65916a77072247
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Wed Nov 7 08:28:53 2012 -0500

    Make a note for atagar's OrderedDict suggestion (#6471).
---
 task-6471/python/pygeodate.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/task-6471/python/pygeodate.py b/task-6471/python/pygeodate.py
index 72f13d8..f9525f0 100644
--- a/task-6471/python/pygeodate.py
+++ b/task-6471/python/pygeodate.py
@@ -17,7 +17,9 @@ class Range:
 
 class Database:
   def __init__(self):
-    # TODO Replace with crit-bit tree if performance becomes a problem
+    # TODO Replace with crit-bit tree if performance becomes a problem;
+    # alternatively, use an OrderedDict which is the equivalent of
+    # LinkedHashMap in Java.
     self.data = []
     self.dates = []
     self.keys = []



More information about the tor-commits mailing list