Page MenuHomePhabricator

revlog: add a "data compression mode" entry in the index tuple
ClosedPublic

Authored by marmoute on May 4 2021, 10:14 AM.

Details

Summary

That will make it possible to keep track of compression information in the
revlog index, opening the way to more efficient revision restoration (in native
code, but the python usage is already defeating performance work).

We start with adding a new entry to the index tuple, using a value matching the
current behavior. We will introduce storage and other value in later changesets.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.May 4 2021, 10:14 AM

I don't understand the motivation for this change.

I don't understand the motivation for this change.

This is an implementation of the idea written down by Greg here (in the section "Chunk format / compression stored in chunk)":

https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-February/093657.html

baymax updated this revision to Diff 27583.May 5 2021, 5:48 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

baymax updated this revision to Diff 27885.May 11 2021, 1:45 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

Alphare accepted this revision.May 17 2021, 5:49 PM
This revision is now accepted and ready to land.May 17 2021, 5:49 PM