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 #2910

Closed
wants to merge 1 commit into from

Commits on Sep 9, 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 until no longer needed. It is cached in
    a SoftReference to avoid OutOfMemoryError.
    
    eclipse-jdt#2691
    EcljpseB0T committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    a8e2bbc View commit details
    Browse the repository at this point in the history