Mercurial > hg
comparison hgdemandimport/demandimportpy3.py @ 49552:1994842955db stable
upgrade: no longer keep all revlogs in memory at any point
Keeping all object open is unsustainable, so we will open them on demand. This
mean opening them multiple times, but this is a lesser evil.
Each revlog consume a small amount of memory (index content, associated nodemap,
etc). While there are few "big" revlog, the sheer amount of small filelog can
become a significant issue memory wise, consuming multiple GB of memory. If you
combines this extra usage with the use of multiprocessing, this usage can
quickly get out of control. This can effectively block the upgrade of larger
repository. This changeset fixes this issue.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 04 Nov 2022 16:15:12 -0400 |
parents | b8eb29ab3906 |
children | 87516dd774d0 48e38b179106 |
comparison
equal
deleted
inserted
replaced
49551:5f22c92dcf3d | 49552:1994842955db |
---|