diff options
| author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2025-04-30 17:10:51 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2025-05-01 18:48:33 (GMT) |
| commit | bb3a348def886a7bc5c03ca5541a44919ab708b0 (patch) | |
| tree | ef2071710f73dac9267f6e4509f413f21f9d2557 /Tests/FindPython/Python3Module | |
| parent | 9c8fe5d0b4e61089b08609a0788d800acc147850 (diff) | |
| download | CMake-bb3a348def886a7bc5c03ca5541a44919ab708b0.zip CMake-bb3a348def886a7bc5c03ca5541a44919ab708b0.tar.gz CMake-bb3a348def886a7bc5c03ca5541a44919ab708b0.tar.bz2 | |
find_package: Fix performance regression in 4.0.0 release
In commit e90f60f864 (find_package: Don't glob certain macOS paths,
2024-10-23, v4.0.0-rc1~579^2~1) we changed the name matching logic of
`find_package` to check if a possible match is a directory before
checking whether the name is a match. In some situations, this results
in unnecessarily calling `stat` for a very large number of files, which
can be extremely slow on some systems (especially Windows). Fix this by
making the check the last thing we do before accepting a possible match.
Fixes: #26817
Diffstat (limited to 'Tests/FindPython/Python3Module')
0 files changed, 0 insertions, 0 deletions
