Patchwork D1939: ui: Improve performance for multi-component writes

login
register
mail settings
Submitter phabricator
Date Feb. 3, 2018, 8:35 a.m.
Message ID <deeb890541b388cbe8ce7987494ea2da@localhost.localdomain>
Download mbox | patch
Permalink /patch/27260/
State Not Applicable
Headers show

Comments

phabricator - Feb. 3, 2018, 8:35 a.m.
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




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

Patch

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: