Module rustc_session::search_paths
source · Structs§
- The obvious implementation of
SearchPath::files
is aVec<PathBuf>
. But it is searched repeatedly byfind_library_crate
, and the searches involve checking the prefix and suffix of the filename of eachPathBuf
. This is doable, but very slow, because it involves calls tofile_name
andextension
that are themselves slow.