Skip to content

[optimization] avoid running symbol indexing and cache write for empty affected files array #1124

Closed

Description

@martinlippert

When a file is changed, the symbol indexer updates the symbols, and index, diagnostics for this changed file. It also takes care of re-running the indexing on affected files (files that might be affected by a change in the file that we got the change notification from). This happens, for example, if a symbol of source file A.java contains information from B.java. When B.java changes, the symbol indexing etc. needs to re-run on A.java as well, even though the file A.java itself didn't change.

Unfortunately, even if there is no affected file around (which will be the case in the majority of cases), the machinery around this runs and the (unchanged) cache is being written to disc again. We should avoid that.

Activity

  1. added this to the 4.20.1.RELEASE milestone on Oct 15, 2023
  2. added a commit that references this issue on Oct 15, 2023
  3. martinlippert commented on Oct 15, 2023

    @martinlippert
    MemberAuthor

    Fixed with 99032f1

  4. changed the title [-]avoid running symbol indexing and cache write for empty affected files array[/-] [+][optimization] avoid running symbol indexing and cache write for empty affected files array[/+] on Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: eclipsefor: vscodetheme: performancetheme: spring index & symbolstheme: validationtype: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions