921 |
921 |
922 For a more comprehensive guide, see :hg:`help internals.dirstate-v2`. |
922 For a more comprehensive guide, see :hg:`help internals.dirstate-v2`. |
923 |
923 |
924 ``use-persistent-nodemap`` |
924 ``use-persistent-nodemap`` |
925 Enable or disable the "persistent-nodemap" feature which improves |
925 Enable or disable the "persistent-nodemap" feature which improves |
926 performance if the rust extensions are available. |
926 performance if the Rust extensions are available. |
927 |
927 |
928 The "persistence-nodemap" persist the "node -> rev" on disk removing the |
928 The "persistent-nodemap" persist the "node -> rev" on disk removing the |
929 need to dynamically build that mapping for each Mercurial invocation. This |
929 need to dynamically build that mapping for each Mercurial invocation. This |
930 significantly reduce the startup cost of various local and server-side |
930 significantly reduces the startup cost of various local and server-side |
931 operation for larger repository. |
931 operation for larger repositories. |
932 |
932 |
933 The performance improving version of this feature is currently only |
933 The performance-improving version of this feature is currently only |
934 implemented in Rust, so people not using a version of Mercurial compiled |
934 implemented in Rust (see :hg:`help rust`), so people not using a version of |
935 with the Rust part might actually suffer some slowdown. For this reason, |
935 Mercurial compiled with the Rust parts might actually suffer some slowdown. |
936 Such version will by default refuse to access such repositories. That |
936 For this reason, such versions will by default refuse to access repositories |
937 behavior can be controlled by configuration. Check |
937 with "persistent-nodemap". |
|
938 |
|
939 This behavior can be adjusted via configuration: check |
938 :hg:`help config.storage.revlog.persistent-nodemap.slow-path` for details. |
940 :hg:`help config.storage.revlog.persistent-nodemap.slow-path` for details. |
939 |
941 |
940 Repository with this on-disk format require Mercurial version 5.4 or above. |
942 Repositories with this on-disk format require Mercurial 5.4 or above. |
941 |
943 |
942 By default this format variant is disabled if fast implementation is not |
944 By default this format variant is disabled if the fast implementation is not |
943 available and enabled by default if the fast implementation is available. |
945 available, and enabled by default if the fast implementation is available. |
944 |
946 |
945 To accomodate install of Mercurial without the fast implementation you can |
947 To accomodate installations of Mercurial without the fast implementation, |
946 downgrade your repository. To do so run the following command: |
948 you can downgrade your repository. To do so run the following command: |
947 |
949 |
948 $ hg debugupgraderepo \ |
950 $ hg debugupgraderepo \ |
949 --run \ |
951 --run \ |
950 --config format.use-persistent-nodemap=False \ |
952 --config format.use-persistent-nodemap=False \ |
951 --config storage.revlog.persistent-nodemap.slow-path=allow |
953 --config storage.revlog.persistent-nodemap.slow-path=allow |