Closed plux closed 5 months ago
Improve performance of looking up references to macros/records.
Finding scoped references can be done in two ways:
Naive, find all POIs that can reach our POI and matches the id.
Indexed, use the index to find all matching POIs, then check if they actually reference our POI by using goto_definition.
It varies from case to case which is the fastest, so we race both functions to get the quickest answer.
Fixes #1309.
Description
Improve performance of looking up references to macros/records.
Finding scoped references can be done in two ways:
Naive, find all POIs that can reach our POI and matches the id.
Indexed, use the index to find all matching POIs, then check if they actually reference our POI by using goto_definition.
It varies from case to case which is the fastest, so we race both functions to get the quickest answer.
Fixes #1309.