about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-25 05:19:07 +0000
committerbors <bors@rust-lang.org>2024-08-25 05:19:07 +0000
commitcba00a8406944eb8e5beac17b7f1a449e0a0cde2 (patch)
tree5a7d7dbbbf6c5d89a2686f88cf2d2c09b32d1c76 /tests/codegen/patchable-function-entry
parenta074e1abbb7094fe1c744c2b733868dfe661fedc (diff)
parent7bd3ca102d372c67dcad90322eaf83631f9c4b41 (diff)
downloadrust-cba00a8406944eb8e5beac17b7f1a449e0a0cde2.tar.gz
rust-cba00a8406944eb8e5beac17b7f1a449e0a0cde2.zip
Auto merge of #17955 - ChayimFriedman2:fix-fast-search-with-scope, r=Veykril
fix: Don't enable the search fast path for short associated functions when a search scope is set

In most places where we set a search scope it is a single file, and so the fast path will actually harm performance, since it has to search for aliases in the whole project. The only exception that qualifies for the fast path is SSR (there is an exception that don't qualify for the fast path as it search for `use` items). It sets the search scope to avoid dependencies. We could make it use the fast path, but I didn't bother.

I forgot this while working on #17927.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions