C/C++ codebase indexing is super slow

Describe the Bug

Codebase indexing takes 3 to 5 seconds to process just one C/C++ source file, which is too slow. My codebase has 8800 C/C++ source files, this kind of indexing speed would make the indexing process for days to complete.

I edited .cursorignore file to exclude some big and useless files for cursor, which doesn’t really help.

The target machine has a high-end intel 14-gen CPU and 125 GB RAM, and there is no other heavy tasks running in the background.

As in the screenshot, indexing only completed 1.3% after 12 hours running

Steps to Reproduce

Only a C++ project with large number of source files

Expected Behavior

Indexing shouldn’t take for days to complete

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.3 (Universal)
VSCode Version: 1.96.2
Commit: 979ba33804ac150108481c14e0b5cb970bda3260
Date: 2025-06-15T06:37:17.379Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

Does this stop you from using Cursor

Yes - Cursor is unusable