[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 44a529a4c87c4784ac4a0832cf65916a77072247
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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 = []

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits