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-16 07:20:23 +0000
committerbors <bors@rust-lang.org>2024-08-16 07:20:23 +0000
commit95f5e4b6263199b5d1c01e71562cfde866542db1 (patch)
tree4b8c4fbbefb945a81d03f357073bb17d40d38d40 /tests/codegen/patchable-function-entry
parentb68992a510c2997a08d59633609ed93b664e8953 (diff)
parent0cbf6a7a7683d81095b3291be33e4be7936110d2 (diff)
downloadrust-95f5e4b6263199b5d1c01e71562cfde866542db1.tar.gz
rust-95f5e4b6263199b5d1c01e71562cfde866542db1.zip
Auto merge of #17908 - ChayimFriedman2:usages-word-boundaries, r=Veykril
Test for word boundary in `FindUsages`

This speeds up short identifiers search significantly, while unlikely to have an effect on long identifiers (the analysis takes much longer than some character comparison).

Tested by finding all references to `eq()` (from `PartialEq`) in the rust-analyzer repo. Total time went down from 100s to 10s (a 10x reduction!).

Feel free to close this if you consider this a non-issue, as most short identifiers are local.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions