Mercurial > hg
changeset 50166:6ea3b1acb5de
rhg: in path_encode, be a bit more conservative about memory usage
Use [shrink_to_fit] to match the previous behavior more closely,
and potentially save (a tiny bit) of memory.
FWIW, I suspect this is unnecessary, but this whole MR is
about simplifying things while preserving any existing
optimizations.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Fri, 17 Feb 2023 13:29:39 +0000 |
parents | 4180c988d1d5 |
children | ee63c87a0cac |
files | rust/hg-core/src/revlog/path_encode.rs |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff