if your scene is really big, it might take a bit of time. in case this becomes an issue, you could probably filter layers that are to be searched. either by implicit knowledge, or only searching layers of a specific type (e.g. for graph segments one only needs to look in a graph network layer)