Skip to content
Snippets Groups Projects
Commit 2166f1483c19 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

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
parent 88c205c7709b
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment