Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[performance] Avoid reading SourceFile twice #3030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 1, 2024

  1. [performance] Avoid reading SourceFile twice

    During compile parsing happens in two stages:
    1. diet parse (any blocks like method bodies are skipped)
    2. parse bodies
    Both phases did read the source .java file from file system. With this
    change the file contents is kept in CompilationResult.contentRef until
    no longer needed. It is cached in
    a SoftReference to avoid OutOfMemoryError.
    
    eclipse-jdt#2691
    EcljpseB0T committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8f5a2bf View commit details
    Browse the repository at this point in the history