##// END OF EJS Templates
sparse-revlog: fast-path before computing payload size...
Boris Feld -
r40642:bfbfd15d default
parent child Browse files
Show More
@@ -257,13 +257,13 b' def _slicechunktodensity(revlog, revs, t'
257 return
257 return
258
258
259 deltachainspan = segmentspan(revlog, revs)
259 deltachainspan = segmentspan(revlog, revs)
260 chainpayload = sum(length(r) for r in revs)
261
260
262 if deltachainspan < mingapsize:
261 if deltachainspan < mingapsize:
263 yield revs
262 yield revs
264 return
263 return
265
264
266 readdata = deltachainspan
265 readdata = deltachainspan
266 chainpayload = sum(length(r) for r in revs)
267
267
268 if deltachainspan:
268 if deltachainspan:
269 density = chainpayload / float(deltachainspan)
269 density = chainpayload / float(deltachainspan)
General Comments 0
You need to be logged in to leave comments. Login now