D1939: ui: Improve performance for multi-component writes

joerg.sonnenberger (Joerg Sonnenberger) phabricator at mercurial-scm.org
Sat Feb 3 08:35:22 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe49c39ffeac2: ui: improve performance for multi-component writes (authored by joerg.sonnenberger, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1939?vs=5004&id=5176

REVISION DETAIL
  https://phab.mercurial-scm.org/D1939

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -916,8 +916,7 @@
         # opencode timeblockedsection because this is a critical path
         starttime = util.timer()
         try:
-            for a in msgs:
-                self.fout.write(a)
+            self.fout.write(''.join(msgs))
         except IOError as err:
             raise error.StdioError(err)
         finally:



To: joerg.sonnenberger, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list