This is an archive of the discontinued Mercurial Phabricator instance.

progress: write ui.progress() in terms of ui.makeprogress()
ClosedPublic

Authored by martinvonz on Jan 8 2019, 1:10 PM.

Details

Summary

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().

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.