mdBook/src/utils
Johannes Gloeckle c144c26dcf Reduce allocations in `fs::copy_files_except_ext`
Above mentioned function copies files (recursively) from a source to a
destination directory. For that, file/directory paths have to be created
repeatedly. This allocates as directory and file names are concatenated
into an owning path structure.

The number of allocations can be reduced by creating file/directory
paths only once and borrowing them instead of cloning/recreating them.

In bigger projects, this reduces execution time noticeably. Please note
that file system operations are dominant from performance POV.
2024-04-07 10:43:23 +02:00
..
fs.rs Reduce allocations in `fs::copy_files_except_ext` 2024-04-07 10:43:23 +02:00
mod.rs Rename curly-quotes to smart-punctuation. 2024-02-25 13:42:44 -08:00
string.rs feat: use once_cell instead of lazy_static (#1894) 2022-09-22 15:05:39 -07:00
toml_ext.rs clippy: use char instead of str 2020-12-31 15:37:34 -05:00