[Request] [+ ] D9153: unbundle: free temporary objects after use
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Mon Oct 5 23:52:19 UTC 2020
joerg.sonnenberger created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This reduces peak RSS for larger unbundle operations by ~30 Bytes per
changeset on AMD64.
REPOSITORY
rHG Mercurial
BRANCH
stable
REVISION DETAIL
https://phab.mercurial-scm.org/D9153
AFFECTED FILES
mercurial/changegroup.py
CHANGE DETAILS
diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -331,6 +331,8 @@
clend = len(cl)
changesets = clend - clstart
progress.complete()
+ del deltas
+ del efilesset
self.callback = None
# pull off the manifest group
To: joerg.sonnenberger, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20201005/3b152714/attachment.html>
More information about the Mercurial-patches
mailing list