Mercurial > hg
comparison mercurial/configitems.py @ 47389:e6292eb33384
revlog: store sidedata in their own file
This makes sidedata manipulation simpler and results in more compact data when
traversing either data or sidedata.
Differential Revision: https://phab.mercurial-scm.org/D10787
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 28 May 2021 23:41:17 +0200 |
parents | 75e1104f23a2 |
children | de2e04fe4897 2813d406b036 |
comparison
equal
deleted
inserted
replaced
47388:bcf92bdc2bca | 47389:e6292eb33384 |
---|---|
1160 # * Exchange-wise, we will also need to do something more efficient than | 1160 # * Exchange-wise, we will also need to do something more efficient than |
1161 # keeping references to the affected revlogs, especially memory-wise when | 1161 # keeping references to the affected revlogs, especially memory-wise when |
1162 # rewriting sidedata. | 1162 # rewriting sidedata. |
1163 # * introduce a proper solution to reduce the number of filelog related files. | 1163 # * introduce a proper solution to reduce the number of filelog related files. |
1164 # * use caching for reading sidedata (similar to what we do for data). | 1164 # * use caching for reading sidedata (similar to what we do for data). |
1165 # * no longer set offset=0 if sidedata_size=0 (simplify cutoff computation). | |
1165 # * Improvement to consider | 1166 # * Improvement to consider |
1166 # - avoid compression header in chunk using the default compression? | 1167 # - avoid compression header in chunk using the default compression? |
1167 # - forbid "inline" compression mode entirely? | 1168 # - forbid "inline" compression mode entirely? |
1168 # - split the data offset and flag field (the 2 bytes save are mostly trouble) | 1169 # - split the data offset and flag field (the 2 bytes save are mostly trouble) |
1169 # - keep track of uncompressed -chunk- size (to preallocate memory better) | 1170 # - keep track of uncompressed -chunk- size (to preallocate memory better) |
1170 # - keep track of chain base or size (probably not that useful anymore) | 1171 # - keep track of chain base or size (probably not that useful anymore) |
1171 # - store data and sidedata in different files | |
1172 coreconfigitem( | 1172 coreconfigitem( |
1173 b'experimental', | 1173 b'experimental', |
1174 b'revlogv2', | 1174 b'revlogv2', |
1175 default=None, | 1175 default=None, |
1176 ) | 1176 ) |