Recently added Visual Studio location with vswhere (#11) seems to be very slow when using -find with path patterns. As in, 5 minutes slow (#12).
vswhere does not provide much insight into why this happens, but I guess that's because filesystem operations (and search in particular) are not very fast on Windows.
Improve the search performance by combining vswhere with probing. Use vswhere to locate the installation root, and then probe around for the batch script we need.
Also, don't use vswhere for Visual Studio 2015 as it does not seem to work. Rely only on probing here.
And also, add some debug logs so that it's possible to track which path has been used, if you're interested in it.
Recently added Visual Studio location with
vswhere
(#11) seems to be very slow when using-find
with path patterns. As in, 5 minutes slow (#12).vswhere does not provide much insight into why this happens, but I guess that's because filesystem operations (and search in particular) are not very fast on Windows.
Improve the search performance by combining vswhere with probing. Use vswhere to locate the installation root, and then probe around for the batch script we need.
Also, don't use vswhere for Visual Studio 2015 as it does not seem to work. Rely only on probing here.
And also, add some debug logs so that it's possible to track which path has been used, if you're interested in it.
/cc @aminya