# HG changeset patch # User Martin von Zweigbergk # Date 1553723746 25200 # Node ID 0129bf02fa044d791d6f33d8456dd2f8b6ecbfca # Parent eec20025ada33889233e553c5825aac36b708f6c remotefilelog: prefetch files in deterministic order I have been troubleshooting some slowness in this area (it's unclear if it's the client or server that's to blame, but that's beside the point) and it's a lot easier to do troubleshoot if the files are prefetched in the same order each time. Differential Revision: https://phab.mercurial-scm.org/D6172 diff -r eec20025ada3 -r 0129bf02fa04 hgext/remotefilelog/fileserverclient.py --- a/hgext/remotefilelog/fileserverclient.py Tue Mar 26 17:35:28 2019 +0100 +++ b/hgext/remotefilelog/fileserverclient.py Wed Mar 27 14:55:46 2019 -0700 @@ -544,7 +544,7 @@ if fetchwarning: self.ui.warn(fetchwarning + '\n') self.logstacktrace() - missingids = [(file, hex(id)) for file, id in missingids] + missingids = [(file, hex(id)) for file, id in sorted(missingids)] fetched += len(missingids) start = time.time() missingids = self.request(missingids)