Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
40818:a0f2641ddd61 | 40819:875d2af8cb4e |
---|---|
749 | 749 |
750 chainspan = ui.configbytes(b'experimental', b'maxdeltachainspan') | 750 chainspan = ui.configbytes(b'experimental', b'maxdeltachainspan') |
751 if 0 <= chainspan: | 751 if 0 <= chainspan: |
752 options[b'maxdeltachainspan'] = chainspan | 752 options[b'maxdeltachainspan'] = chainspan |
753 | 753 |
754 mmapindexthreshold = ui.configbytes(b'experimental', | 754 mmapindexthreshold = ui.configbytes(b'storage', b'mmap-threshold') |
755 b'mmapindexthreshold') | |
756 if mmapindexthreshold is not None: | 755 if mmapindexthreshold is not None: |
757 options[b'mmapindexthreshold'] = mmapindexthreshold | 756 options[b'mmapindexthreshold'] = mmapindexthreshold |
758 | 757 |
759 withsparseread = ui.configbool(b'experimental', b'sparse-read') | 758 withsparseread = ui.configbool(b'experimental', b'sparse-read') |
760 srdensitythres = float(ui.config(b'experimental', | 759 srdensitythres = float(ui.config(b'experimental', |