diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2024-08-16 10:02:36 +0300 |
|---|---|---|
| committer | Chayim Refael Friedman <chayimfr@gmail.com> | 2024-08-16 10:02:36 +0300 |
| commit | 0cbf6a7a7683d81095b3291be33e4be7936110d2 (patch) | |
| tree | 07fbbf2dbb28f479e0faeeb12ae2f425dac391a7 /tests/codegen/patchable-function-entry | |
| parent | ec03068320956bedd5defea43d3634a58908c493 (diff) | |
| download | rust-0cbf6a7a7683d81095b3291be33e4be7936110d2.tar.gz rust-0cbf6a7a7683d81095b3291be33e4be7936110d2.zip | |
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!).
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
