[PATCH STABLE RFC] hgwebdir: reduce memory usage for index generation
Alexander Solovyov
alexander at solovyov.net
Thu Feb 17 16:05:25 CST 2011
On Thu, Feb 17, 2011 at 21:07, Wagner Bruna
<wagner.bruna+mercurial at gmail.com> wrote:
> mod_wsgi 3.3) I got a reduction from ~300M RSS to ~20M.
...
> - archives=archivelist(u, "tip", url))
> + archives=list(archivelist(u, "tip", url)))
Oh wow. Can somebody enlighten me why switching from generator to list
reduces memory usage?
--
Alexander
More information about the Mercurial-devel
mailing list