Turns out that commit really made some serious improvements to memory use.
With the lazy state monad, git-annex add in a huge tree grew seemingly
without bound until it overflowed the stack. With the strict monad,
it uses 42 mb max.

It's possible another change since the 3.20120123 release fixed that,
but a964012fc3 seems most likely.
This commit is contained in:
Joey Hess 2012-02-13 15:27:49 -04:00
parent 3ac2677e00
commit 59b2adea4f

2
debian/changelog vendored
View file

@ -22,6 +22,8 @@ git-annex (3.20120124) UNRELEASED; urgency=low
if available, matches the size of the key.
* addurl --fast: Verifies that the url can be downloaded (only getting
its head), and records the size in the key.
* Fixed to use the strict state monad, to avoid leaking all kinds of memory
due to lazy state update thunks when adding/fixing many files.
-- Joey Hess <joeyh@debian.org> Tue, 24 Jan 2012 16:21:55 -0400