Mercurial > hg
comparison mercurial/configitems.py @ 47387:75e1104f23a2
revlog: use dedicated code for reading sidedata
We are about to introduce a new, dedicated, file to store sidedata. Before doing so, we make sidedata reading go through different code as reading data chunk. This will simplify some of the complexity of the next changesets.
The reading is very simple right now and will need some improvement later to
reuse some of the caching strategy we use for the data file.
Differential Revision: https://phab.mercurial-scm.org/D10785
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 27 May 2021 04:09:30 +0200 |
parents | 8aa3968c6d44 |
children | e6292eb33384 |
comparison
equal
deleted
inserted
replaced
47386:0d0fb091c49f | 47387:75e1104f23a2 |
---|---|
1159 # * track garbage data to evemtually allow rewriting -existing- sidedata. | 1159 # * track garbage data to evemtually allow rewriting -existing- sidedata. |
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 # * Improvement to consider | 1165 # * Improvement to consider |
1165 # - avoid compression header in chunk using the default compression? | 1166 # - avoid compression header in chunk using the default compression? |
1166 # - forbid "inline" compression mode entirely? | 1167 # - forbid "inline" compression mode entirely? |
1167 # - split the data offset and flag field (the 2 bytes save are mostly trouble) | 1168 # - split the data offset and flag field (the 2 bytes save are mostly trouble) |
1168 # - keep track of uncompressed -chunk- size (to preallocate memory better) | 1169 # - keep track of uncompressed -chunk- size (to preallocate memory better) |