( )⚙ D10560 dirstate-tree: Borrow paths from the "on disk" bytes

This is an archive of the discontinued Mercurial Phabricator instance.

dirstate-tree: Borrow paths from the "on disk" bytes
ClosedPublic

Authored by SimonSapin on May 3 2021, 6:26 AM.

Details

Summary

Use std::borrow::Cow to avoid some memory allocations and copying.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

SimonSapin created this revision.May 3 2021, 6:26 AM
Alphare accepted this revision.May 3 2021, 12:45 PM
This revision is now accepted and ready to land.May 3 2021, 12:45 PM
baymax updated this revision to Diff 27636.May 6 2021, 12:04 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

This revision was automatically updated to reflect the committed changes.