Microsoft uses indexing technology to further speed up code searching in Visual Studio

2022-06-10 0 By

Microsoft has added a new Find in Files feature in the latest Preview of Visual Studio 2022 17.1 to provide a better search experience for developers.The search speed has been significantly increased to double speed in 95% of files, and will increase again in version 17.1.Visual Studio 2019 version 16.4 is the slowest, taking an average of 21.65 seconds to complete a search query. In Visual Studio 2019 version 16.11, this has been reduced to 10.05 seconds.Visual Studio 2022 has halved the time again, while the latest Visual Studio 2022 17.1 version is even faster, now executing a search query in just over one second.Since the feature is still in the preview phase, developers can speed up the search experience by going to the preview option in the tool and activating the index.Once activated this feature, when loading or folder to open the solution, the Visual Studio will start the affiliate program ServiceHub. IndexingService. Exe, and the transmission of file list for the program to build an index.This indexer executes outside of the Visual Studio main program at a lower than normal operating system priority to avoid impacting solution loading, builds, and user activity.