Skip to main content

absolute_path_prime_cache

Function absolute_path_prime_cache 

Source
pub(crate) fn absolute_path_prime_cache(path: PathBuf) -> PathBuf
Expand description

Primes the cached function absolute_path. Create an absolute path out of a PathBuf.

The clean method is relatively expensive Therefore we cache this call to reduce allocs and wall time https://stackoverflow.com/a/54817755/270334

ยงCaching

This is a cached function that uses the ABSOLUTE_PATH cached static.