unused: Improved memory use significantly when there are a lot of differences between branches.

Argh, didn't need an accumulator here!

I think I use accumulators a lot more than I need to when recusively
processing lists..

This commit was sponsored by Jeff Goeke-Smith on Patreon.
This commit is contained in:
Joey Hess 2017-01-31 19:42:00 -04:00
parent 062286135c
commit ed60f60e9b
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
4 changed files with 19 additions and 4 deletions

View file

@ -1,3 +1,6 @@
While running *git-annex unused* on an annex with tens of thousands of items, *git-annex*'s memory usage ballooned to over 3 gigs and my PC froze. I cannot run *git-annex unused* on this annex because of this issue.
If it's possible, more efficient memory management would prevent this from happening.
> [[done]] -- assuming the memory leak I saw was the same one you saw...
> --[[Joey]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2017-01-31T23:31:03Z"
content="""
Fixed the rest of the streaming problem.
(Also found/fixed an unrelated memory blow up in git annex unused that
only happened when a large file got checked right into git.)
"""]]