This is an archive of the discontinued Mercurial Phabricator instance.

ui: improve ui.write performance when not coloring on Windows
ClosedPublic

Authored by joerg.sonnenberger on Feb 3 2018, 6:31 PM.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

yuja requested changes to this revision.Feb 4 2018, 6:02 AM
yuja added a subscriber: yuja.
yuja added inline comments.
mercurial/logcmdutil.py
97

I slightly prefer passing chunks as an argument in place of oldchunks trick. But this is really minor nit.

If we make all diffui() batchable (e.g. _exportsingle()) as a follow up, difflabel() can
just take chunks as an argument.

mercurial/ui.py
881

Can you remove unused opts parameter?

I don't think it will be any useful since we want to feed chunks
at once where opts may vary.

886

Perhaps "label -> true" would be preferable than double negative "no label -> false".

890

I think this assert is irrelevant since "no label" writes can be batched.

This revision now requires changes to proceed.Feb 4 2018, 6:02 AM
yuja accepted this revision.Feb 7 2018, 8:24 AM

Dropped **opts and queued, thanks.

This revision is now accepted and ready to land.Feb 7 2018, 8:24 AM
This revision was automatically updated to reflect the committed changes.