System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.79
Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: rBc77597cd0e15
Description of error
Opening search menu takes ~6 seconds while I'm in edit mode and have a specific .blend file open (same when opening backup .blend1 file). This isn't a problem on a freshly made .blend file (meaning it's not an issue with add-ons), but it happens every time I work on a specific project file (created in Jan 2020, weighs 120MB, contains 3264 objects, 1149 meshes, 683 curves, 454 materials, 646 images and minuscule amount of other data-blocks). I don't know when this problem occured but last time I worked on the project around 3-4 months ago this wasn't an issue. System console doesn't print any errors and I can't find anyone online who had the same issue.
Is there some way for me to debug the file and see what's causing such lag?