diff options
author | Sam Rose <hello@samwho.dev> | 2020-02-03 21:57:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 16:57:48 -0500 |
commit | 83337a1a03b04be17944171aa400a3f7b857de84 (patch) | |
tree | 44a67ed592945c25d7ef391290bc3626035f0155 /src/modules/dotnet.rs | |
parent | c30419877c947ed8270bc87ac5907613897df5c4 (diff) |
perf: Optimize files, folder and extension lookups in Context (#880)
Diffstat (limited to 'src/modules/dotnet.rs')
-rw-r--r-- | src/modules/dotnet.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/dotnet.rs b/src/modules/dotnet.rs index 738e38a93..5ca4d636f 100644 --- a/src/modules/dotnet.rs +++ b/src/modules/dotnet.rs @@ -165,8 +165,8 @@ fn get_pinned_sdk_version(json: &str) -> Option<Version> { fn get_local_dotnet_files<'a>(context: &'a Context) -> Result<Vec<DotNetFile<'a>>, std::io::Error> { Ok(context - .get_dir_files()? - .iter() + .dir_contents()? + .files() .filter_map(|p| { get_dotnet_file_type(p).map(|t| DotNetFile { path: p.as_ref(), |