##// END OF EJS Templates
Minor caching improvement for manifest...
mpm@selenic.com -
r313:e75ea466 default
parent child Browse files
Show More
@@ -97,6 +97,7 b' class manifest(revlog):'
97 revlog.__init__(self, opener, "00manifest.i", "00manifest.d")
97 revlog.__init__(self, opener, "00manifest.i", "00manifest.d")
98
98
99 def read(self, node):
99 def read(self, node):
100 if node == nullid: return {} # don't upset local cache
100 if self.mapcache and self.mapcache[0] == node:
101 if self.mapcache and self.mapcache[0] == node:
101 return self.mapcache[1].copy()
102 return self.mapcache[1].copy()
102 text = self.revision(node)
103 text = self.revision(node)
@@ -111,6 +112,7 b' class manifest(revlog):'
111 return map
112 return map
112
113
113 def readflags(self, node):
114 def readflags(self, node):
115 if node == nullid: return {} # don't upset local cache
114 if self.mapcache or self.mapcache[0] != node:
116 if self.mapcache or self.mapcache[0] != node:
115 self.read(node)
117 self.read(node)
116 return self.mapcache[2]
118 return self.mapcache[2]
General Comments 0
You need to be logged in to leave comments. Login now