##// END OF EJS Templates
revlog: inline start() and end() for perf reasons...
Gregory Szorc -
r30288:ceddc3d9 default
parent child Browse files
Show More
@@ -1109,8 +1109,14 b' class revlog(object):'
1109 1109 Callers will need to call ``self.start(rev)`` and ``self.length(rev)``
1110 1110 to determine where each revision's data begins and ends.
1111 1111 """
1112 start = self.start(startrev)
1113 end = self.end(endrev)
1112 # Inlined self.start(startrev) & self.end(endrev) for perf reasons
1113 # (functions are expensive).
1114 index = self.index
1115 istart = index[startrev]
1116 iend = index[endrev]
1117 start = int(istart[0] >> 16)
1118 end = int(iend[0] >> 16) + iend[1]
1119
1114 1120 if self._inline:
1115 1121 start += (startrev + 1) * self._io.size
1116 1122 end += (endrev + 1) * self._io.size
General Comments 0
You need to be logged in to leave comments. Login now