comparison mercurial/configitems.py @ 46874:84a93fa7ecfd

revlog-compression: use zstd by default (if available) As see in changeset bb271ec2fbfb, zstd is 20% to 50% faster for reading and writing. Use take advantage of the new config behavior to try zstd by default, falling back to zlib is zstd is not available on that plateform. Differential Revision: https://phab.mercurial-scm.org/D10326
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 06 Apr 2021 18:55:19 +0200
parents 2b1b8f3e6510
children cc3ad5c3af3b
comparison
equal deleted inserted replaced
46873:0abf5eba0042 46874:84a93fa7ecfd
1305 default=True, 1305 default=True,
1306 ) 1306 )
1307 coreconfigitem( 1307 coreconfigitem(
1308 b'format', 1308 b'format',
1309 b'revlog-compression', 1309 b'revlog-compression',
1310 default=lambda: [b'zlib'], 1310 default=lambda: [b'zstd', b'zlib'],
1311 alias=[(b'experimental', b'format.compression')], 1311 alias=[(b'experimental', b'format.compression')],
1312 ) 1312 )
1313 coreconfigitem( 1313 coreconfigitem(
1314 b'format', 1314 b'format',
1315 b'usefncache', 1315 b'usefncache',