Mercurial > hg
comparison mercurial/subrepoutil.py @ 41305:ff927ecb12f9 stable
ui: optimize buffered write with no label
This was spotted while making fastannotate faster again after ditching its
own formatter. Since I'm going to inline _write() into ui.write(), I decided
to include this patch in this series.
Here, the cost of '(self.label(a, label) for a in args)' was significant
in hot loops.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 28 Nov 2018 22:36:24 +0900 |
parents | b94fecf4cd8c |
children | 876494fd967d |
comparison
equal
deleted
inserted
replaced
41304:76873548b051 | 41305:ff927ecb12f9 |
---|