HomePhabricator

rhg: more efficient `HgPath::join`

Authored by aalekseyev.

Description

rhg: more efficient HgPath::join

This commit makes HgPath::join slightly more efficient
by avoiding one copy.

It also avoids a particularly inefficient (quadratic) use of
HgPath::join by using a new mutating function HgPathBuf::push instead.

The name for HgPathBuf::push is chosen by analogy to PathBuf::push.

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

Details

Committed
aalekseyevOct 26 2021, 2:47 PM
Differential Revision
D11721: rhg: more efficient `HgPath::join`
Parents
rHG229f5ee1a08a: relnotes: update 6.0 with the last changes for the release
Branches
Unknown
Tags
Unknown