-
Notifications
You must be signed in to change notification settings - Fork 406
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
very slow on large project comparing to intellij #3202
Comments
have you tried increasing the memory allocated to the Java language server (e.g. set |
@fbricon I set -Xmx16G, and my server has 32G mem |
@yimingwangdell Could you attach a project example? |
@snjeza sorry I cannot attach a project now, but I've noticed that there are some big .java files generated by protobuf, which have more that 200000 lines and some single java files more than 10000 lines is referencing classes from that protobuf java file. |
@snjeza neoclide/coc-java#129 my issue looks similar to this one. |
@yimingwangdell Have you tried to set |
@snjeza Property diagnostic.refreshAfterSave is not allowed. (json)X |
@snjeza I see this config in my coc config, but it looks this property was deprecated |
@yimingwangdell Could you try to set |
@snjeza I've tried, actually I set 30 before. |
@snjeza I use java 11 as runtime, I notice that the memory for java 11 lsp is only 4096m, I guess maybe I need to increase memory for java11. |
@snjeza after switching from coc-java to native lsp, all problems gone. |
What is native LSP? |
@fbricon nvim-jdtls |
completion on large project has millions of lines is too slow.
it takes 20s to get the result for first completion of a class instance.
but on inteiilj it takes only 2 seconds or 1 seconds if indexing is done.
The text was updated successfully, but these errors were encountered: