changeset 27667:37df458d60c2

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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 05 Jan 2016 20:52:34 -0800
parents cd2f691f20b8
children 369c8f9453c2
files mercurial/util.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}