Skip to content
  • Martin von Zweigbergk's avatar
    progress: write ui.progress() in terms of ui.makeprogress() · 8cf92ca92bfe
    Martin von Zweigbergk authored
    I think ui.makeprogress() should be the preferred interface and we
    should deprecate ui.progress(). All in-core callers already use
    ui.makeprogress(). Moving the logic to the scmutil.progress() will let
    us make further improvements.
    
    This seems to have sped up `hg perfprogress` from 1.92 s to 1.85 s,
    perhaps because we now skip the indirection of updating the progress
    bar via ui.progress().
    
    Differential Revision: https://phab.mercurial-scm.org/D5527
    8cf92ca92bfe