util: remove outdated comment about construction overhead
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 05 Jan 2016 20:52:34 -0800
changeset 27667 37df458d60c2
parent 27666 cd2f691f20b8
child 27668 369c8f9453c2
util: remove outdated comment about construction overhead An old implementation of this class (possibly only in my local repo) allocated nodes in the cache during construction time, making __init__ slow for large cache capacities. The current implementation lazily grow the cache size, making this comment wrong.
mercurial/util.py
--- a/mercurial/util.py	Wed Jan 06 06:37:34 2016 +0000
+++ b/mercurial/util.py	Tue Jan 05 20:52:34 2016 -0800
@@ -540,10 +540,6 @@
     we recycle head.prev and make it the new head. Cache accesses result in
     the node being moved to before the existing head and being marked as the
     new head node.
-
-    NOTE: construction of this class doesn't scale well if the cache size
-    is in the thousands. Avoid creating hundreds or thousands of instances
-    with large capacities.
     """
     def __init__(self, max):
         self._cache = {}