diff --git a/topics/basics/indexing_and_psi_stubs.md b/topics/basics/indexing_and_psi_stubs.md index 6417405db..acd55c957 100644 --- a/topics/basics/indexing_and_psi_stubs.md +++ b/topics/basics/indexing_and_psi_stubs.md @@ -1,7 +1,7 @@ -# Indexing and PSI Stubs - +# Indexing and PSI Stubs + The indexing framework allows to access information about files content without loading them to memory and parsing. ## Indexes @@ -73,3 +73,7 @@ For [stub index](stub_indexes.md), implement [`LightStubBuilder`](%gh-ic%/platfo If a custom language contains lazy-parseable elements that never or rarely contain any stubs, consider implementing [`StubBuilder.skipChildProcessingWhenBuildingStubs()`](%gh-ic%/platform/core-api/src/com/intellij/psi/StubBuilder.java) (preferably using Lexer/node text). For indexing XML, also consider using [`NanoXmlUtil`](%gh-ic%/platform/indexing-impl/src/com/intellij/util/xml/NanoXmlUtil.java). + +### Shared Indexes + +For bigger projects, building and providing pre-built shared project indexes can be beneficial, see [Shared project indexes](https://www.jetbrains.com/help/idea/shared-indexes.html#project-shared-indexes).