diff mercurial/localrepo.py @ 34825:4d5d5009bd75

revlog-sparse-read: add a lower-threshold for read block size The option experimental.sparse-read.min-block-size specifies the minimal size of a deltachain span, under which it won't be split by _slicechunk.
author Paul Morelle <paul.morelle@octobus.net>
date Sat, 14 Oct 2017 17:05:41 +0200
parents e2ad93bcc084
children 8c9b08a0c48c
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Oct 10 17:50:27 2017 +0200
+++ b/mercurial/localrepo.py	Sat Oct 14 17:05:41 2017 +0200
@@ -611,8 +611,11 @@
         withsparseread = self.ui.configbool('experimental', 'sparse-read')
         srdensitythres = float(self.ui.config('experimental',
                                               'sparse-read.density-threshold'))
+        srminblocksize = self.ui.configbytes('experimental',
+                                             'sparse-read.min-block-size')
         self.svfs.options['with-sparse-read'] = withsparseread
         self.svfs.options['sparse-read-density-threshold'] = srdensitythres
+        self.svfs.options['sparse-read-min-block-size'] = srminblocksize
 
         for r in self.requirements:
             if r.startswith('exp-compression-'):