progress: check what type of progress bar to use only once per topic...
progress: check what type of progress bar to use only once per topic
This seems to have sped up `hg perfprogress` from 1.78 s to 1.41 s.
Differential Revision:
https://phab.mercurial-scm.org/D5530