annotate: do not instantiate filectx per line (fixes #4071)
The number of involved revisions should be much smaller than the number of lines in a file. So it's insane to load filectx per line without cache as 2b5b338a9f0e did. This should reduce silly memory use. Tested with mercurial/i18n/pt_BR.po, which has 28255 lines and involves 120 revisions: version res ---------- ----- 3.2.4 197MB 3.3.2 467MB this patch 200MB In future version, we should drop the creation of filectx objects completely. --HG-- branch : stable
Loading
Please register or sign in to comment