elijahr / python-autopxd2

A friendly fork of autopxd
MIT License
44 stars 9 forks source link

VSWhere search for cl.exe on Windows takes 500s on CI #48

Open touilleMan opened 2 weeks ago

touilleMan commented 2 weeks ago

For instance this job on CI takes 537.18s for a pip install + pytest: https://github.com/elijahr/python-autopxd2/actions/runs/10784358066/job/29920722125

After more test, most of this time is taken by "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease latest -format json -utf8 -find "**\bin\HostX64\x64\cl.exe"

My guess is the ** pattern that may search in far too many places :/

touilleMan commented 2 weeks ago

see https://github.com/microsoft/vswhere/issues/318