Mercurial > public > mercurial-scm > hg
comparison mercurial/configitems.py @ 42046:4ee906aa7b60
compression: introduce an official `format.revlog-compression` option
This option supersedes the `experiment.format.compression` option. The value
currently supported are zlib (default) and zstd (if Mercurial was compiled with
zstd support).
The option gained an explicit reference to `revlog` since this is the target
usage here. Different storage methods might require different compression
strategies.
In our tests, using zstd give a significant CPU usage improvement (both
compression and decompressing) while keeping similar repository size.
Zstd as other interresting mode (dictionnary, pre-text, etc?) that are probably
worth exploring. However, just plain switching from zlib to zstd provide a large
benefit.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 27 Mar 2019 18:26:54 +0100 |
parents | bb271ec2fbfb |
children | 0e41f40b01cc |
comparison
equal
deleted
inserted
replaced
42045:d7e751ec679e | 42046:4ee906aa7b60 |
---|---|
551 default=None, | 551 default=None, |
552 ) | 552 ) |
553 coreconfigitem('experimental', 'extendedheader.similarity', | 553 coreconfigitem('experimental', 'extendedheader.similarity', |
554 default=False, | 554 default=False, |
555 ) | 555 ) |
556 coreconfigitem('experimental', 'format.compression', | |
557 default='zlib', | |
558 ) | |
559 coreconfigitem('experimental', 'graphshorten', | 556 coreconfigitem('experimental', 'graphshorten', |
560 default=False, | 557 default=False, |
561 ) | 558 ) |
562 coreconfigitem('experimental', 'graphstyle.parent', | 559 coreconfigitem('experimental', 'graphstyle.parent', |
563 default=dynamicdefault, | 560 default=dynamicdefault, |
681 coreconfigitem('format', 'obsstore-version', | 678 coreconfigitem('format', 'obsstore-version', |
682 default=None, | 679 default=None, |
683 ) | 680 ) |
684 coreconfigitem('format', 'sparse-revlog', | 681 coreconfigitem('format', 'sparse-revlog', |
685 default=True, | 682 default=True, |
683 ) | |
684 coreconfigitem('format', 'revlog-compression', | |
685 default='zlib', | |
686 alias=[('experimental', 'format.compression')] | |
686 ) | 687 ) |
687 coreconfigitem('format', 'usefncache', | 688 coreconfigitem('format', 'usefncache', |
688 default=True, | 689 default=True, |
689 ) | 690 ) |
690 coreconfigitem('format', 'usegeneraldelta', | 691 coreconfigitem('format', 'usegeneraldelta', |