redhat-developer / redhat-developer/vscode-java

Code Intellisense/autocomplete very slow on big java file.

Open
#1,954 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

content-assist performance
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

I have a java file that over 10000 lines, everytime code Intellisense/autocomplete about this class, it would take a long time (over 10 seconds ) to show the suggestion.

eclipse is fast in the same situation.

I tried to delete most of the code in that file, and code Intellisense/autocomplete is much faster.

Is there any way to speed up the parsing of large files?

Environment
  • Operating System:win10 with wsl2
  • JDK version:openjdk 1.11.0
  • Visual Studio Code version: 1.56.2
  • Java extension version:0.79.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the delay with a Java file larger than 10,000 lines in the reported Windows 10, WSL2, JDK 11, and VS Code environment. Start by profiling autocomplete and parsing in the Java extension; done means suggestions appear without the reported delay of over 10 seconds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.