Closed StrongerXi closed 5 years ago
Can you, please, make simple project to reproduce. I will try to profile it.
import javax.swing.JFrame;
class Foo extends JFrame {
public Foo() {
}
}
class Bar {
public Bar() {
}
}
On my machine and vim at least, the contrast between "this." or "super." in these two classes' methods is huge. I'm wondering if there's anyway to speed it up.
Very slow, large class
Should say that this is due too vim parser that used to parse opened java file. It should be faster for large files when we move too javaparser lib.
3702 0.789974 javacomplete#util#CleanFQN()
I guess if you enable this feature: g:JavaComplete_UseFQN
, it will work little faster.
And you help me find one performance killer. Thank you.
Actual behavior (Required!)
Extremely slow auto-complete on an instance of a class with many methods.
Expected behavior (Required!)
Faster completion.
The steps to reproduce actual behavior (Required!)
Here are the profile logs:
Very slow, large class:
A little slow, simple class:
Environment (Required!)
Q&A
JCdebugEnableLogs
and can put here content ofJCdebugGetLogContent
command, if you need.g:JavaComplete_JavaviLogLevel
to'debug'
, then setg:JavaComplete_JavaviLogDirectory
, and put here server logs, too.