# HG changeset patch # User Jun Wu # Date 1503636234 25200 # Node ID e6d4215669062a7e49d736d46aa9fbc6fe2f51b6 # Parent 1a6707b43d0514a65b4aaebe101e6485e83dd311 journal: do not use atomictemp (issue5338) Writing journal files using `atomictemp` leads to quadratic performance that could be problematic if automation runs many commands. Other logs like blackbox does not use atomictemp, and journal logs are not critical for repo correctness. So let's make them non-atomictemp. Differential Revision: https://phab.mercurial-scm.org/D517 diff -r 1a6707b43d05 -r e6d421566906 hgext/journal.py --- a/hgext/journal.py Tue Aug 22 14:26:25 2017 -0400 +++ b/hgext/journal.py Thu Aug 24 21:43:54 2017 -0700 @@ -342,7 +342,7 @@ with self.jlock(vfs): version = None # open file in amend mode to ensure it is created if missing - with vfs('namejournal', mode='a+b', atomictemp=True) as f: + with vfs('namejournal', mode='a+b') as f: f.seek(0, os.SEEK_SET) # Read just enough bytes to get a version number (up to 2 # digits plus separator)