Mercurial > hg-stable
diff mercurial/localrepo.py @ 40819:875d2af8cb4e
mmapindex: move the 'mmapindexthreshold' option out of experimental
The option is useful and should be advertised more. We move it out of
experimental as a first step. The `storage` section is selected as this is
related to how the storage is accessed. A new 'performance' section might be
more appropriate.
We move from 'mmapindexthreshold` to `mmap-threshold` as non-index item are
also suitable for mmap (eg: the rev-branch-cache).
If relevant, we can introduce sub-option `mmap-threshold.revlog-index` later.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 23 Nov 2018 06:07:33 +0100 |
parents | 34f15db81cf0 |
children | 64cdfcc73706 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Dec 01 15:57:27 2018 +0100 +++ b/mercurial/localrepo.py Fri Nov 23 06:07:33 2018 +0100 @@ -751,8 +751,7 @@ if 0 <= chainspan: options[b'maxdeltachainspan'] = chainspan - mmapindexthreshold = ui.configbytes(b'experimental', - b'mmapindexthreshold') + mmapindexthreshold = ui.configbytes(b'storage', b'mmap-threshold') if mmapindexthreshold is not None: options[b'mmapindexthreshold'] = mmapindexthreshold