##// END OF EJS Templates
rust: Preallocate the returned `Vec` in `utils::files::relativize_path`...
rust: Preallocate the returned `Vec` in `utils::files::relativize_path` Profiling `rhg files > /dev/null` on an old snapshot of mozilla-central (with `perf` and the Firefox Profiler: https://github.com/firefox-devtools/profiler/blob/main/docs-user/guide-perf-profiling.md) showed non-trivial time spend in this function and in `realloc`. This change makes the wall-clock time for that process on my machine go from ~190 ms to ~150 ms. Differential Revision: https://phab.mercurial-scm.org/D10199

File last commit:

r42237:675775c3 default
r47533:c94fa884 default
Show More
MANIFEST.in
9 lines | 139 B | text/plain | TextLexer
Gregory Szorc
zstd: vendor python-zstandard 0.6.0...
r30822 graft c-ext
Gregory Szorc
zstandard: vendor python-zstandard 0.10.1...
r40157 graft debian
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 graft zstd
Gregory Szorc
zstandard: vendor python-zstandard 0.9.0...
r37513 graft tests
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 include make_cffi.py
Gregory Szorc
zstd: vendor python-zstandard 0.6.0...
r30822 include setup_zstd.py
include zstd.c
Gregory Szorc
zstandard: vendor python-zstandard 0.9.0...
r37513 include LICENSE
Gregory Szorc
zstandard: vendor python-zstandard 0.10.1...
r40157 include NEWS.rst