From 07406f7d8d0f35cf93b1f93d22cbba4b851af8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 23 May 2023 10:07:42 +0200 Subject: [PATCH] indexing_and_psi_stubs.md: mention project shared indexes --- topics/basics/indexing_and_psi_stubs.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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).