##// 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
Simon Sapin -
r47533:c94fa884 default
Show More
Name Size Modified Last Commit Author
/ contrib / python-zstandard / zstd / compress
fse_compress.c Loading ...
hist.c Loading ...
hist.h Loading ...
huf_compress.c Loading ...
zstd_compress.c Loading ...
zstd_compress_internal.h Loading ...
zstd_compress_literals.c Loading ...
zstd_compress_literals.h Loading ...
zstd_compress_sequences.c Loading ...
zstd_compress_sequences.h Loading ...
zstd_cwksp.h Loading ...
zstd_double_fast.c Loading ...
zstd_double_fast.h Loading ...
zstd_fast.c Loading ...
zstd_fast.h Loading ...
zstd_lazy.c Loading ...
zstd_lazy.h Loading ...
zstd_ldm.c Loading ...
zstd_ldm.h Loading ...
zstd_opt.c Loading ...
zstd_opt.h Loading ...
zstdmt_compress.c Loading ...
zstdmt_compress.h Loading ...