Skip to content
Snippets Groups Projects
Commit fdc802f2 authored by Jörg Sonnenberger's avatar Jörg Sonnenberger
Browse files

transactions: convert changes['phases'] to list of ranges

Consecutive revisions are often in the same phase, especially public
revisions. This means that a dictionary keyed by the revision for the
phase transitions is highly redundant. Build a list of (range, (old,
new)) entries instead and aggressively merge ranges with the same
transition. For the test case in issue5691, this reduces memory use by
~20MB.

Differential Revision: https://phab.mercurial-scm.org/D8125
parent 81a87347
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment