yuja added a comment. If the perf hit was because of lookup of global variables, maybe we can alias them in functions where hot loop exists. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2701 To: indygreg, #hg-reviewers, phillco, durin42 Cc: yuja, quark, sid0, phillco, pulkit, mercurial-devel