HomePhabricator

simplemerge: avoid quadratic concatenation when building output text

Authored by martinvonz.

Description

simplemerge: avoid quadratic concatenation when building output text

I haven't checked if the difference is measurable, but the new version
is no less readable or idiomatic, so I don't think performance numbers
are needed.

Differential Revision: https://phab.mercurial-scm.org/D9549