🕸️Code Index
Also known as Codebase Index, Code Indexing, Symbol Index
A stored list of where each name in a codebase is made and used.
Think of it like
It is like the index at the back of a book. It tells you which page each word is on.
Example
When Jack opens a big project, his editor reads it all once. That takes a minute. After that, each jump takes less than a second.
Why it matters
Reading a million lines for every question is too slow. An index turns a search into a lookup.
Definition
Common mistake
Key takeaways
- 1Build once. Read every file one time.
- 2Look up fast. Answers without a full scan.
- 3Keep it fresh. Update it as files change.