diff options
author | Ian Toal <iantoal@microsoft.com> | 2019-12-11 00:19:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 00:19:33 +0300 |
commit | 7511f1cb15853a82b544ea40164b2e2f59f51db7 (patch) | |
tree | 81d57c45fcdcfd146c6bac072411b414f6fcdda4 /main/src/addins/MonoDevelop.GtkCore | |
parent | 2055eace84f84acc462167b82f205cb4326aab65 (diff) |
Improve FileNesting performance by avoiding costly IO (#9451)
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1034938
Given the current FileNesting logic, we check for a potential parent which matches a filepath spec. We filter out these parents if they are directories using FilePath.IsDirectory, which causes IO via Directory.Exists. As we already know whether a filepath in the project filelist is a directory, we should delay this filtering and avoid the IO.
Testing:
This change has a 2x speedup (~2.5mins to ~1.1min) for a React.js & Redux Asp.Net Core project which has a node_modules folder added to the project.
Diffstat (limited to 'main/src/addins/MonoDevelop.GtkCore')
0 files changed, 0 insertions, 0 deletions