From 4ac1a6819a14a7fff03dfe97ca40d87ca66ffd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 31 May 2023 15:49:06 +0200 Subject: [PATCH] indexing_and_psi_stubs.md: note about Gist performance --- topics/basics/indexing_and_psi_stubs.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/topics/basics/indexing_and_psi_stubs.md b/topics/basics/indexing_and_psi_stubs.md index 460615aed..4cde62b72 100644 --- a/topics/basics/indexing_and_psi_stubs.md +++ b/topics/basics/indexing_and_psi_stubs.md @@ -1,4 +1,4 @@ - + # Indexing and PSI Stubs @@ -47,6 +47,8 @@ Sometimes, the following conditions hold: A [file-based index](file_based_indexes.md) can be used in such cases, but file gists provide a way to perform data calculation lazily, caching on disk, and a more lightweight API. Please see [`VirtualFileGist`](%gh-ic%/platform/indexing-api/src/com/intellij/util/gist/VirtualFileGist.java) and [`PsiFileGist`](%gh-ic%/platform/indexing-api/src/com/intellij/util/gist/PsiFileGist.java) documentation. +> Note performance implications noted in [`VirtualFileGist`](%gh-ic%/platform/indexing-api/src/com/intellij/util/gist/VirtualFileGist.java) Javadoc. + **Example:** - `VirtualFileGist`: [`ImageInfoIndex`](%gh-ic%/images/src/org/intellij/images/index/ImageInfoIndex.java) calculating image dimensions/bit depth needed to be displayed in specific parts of UI.