Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86
aschild: Applied .diff patch to .js file
dheffelfinger: checking in code into SVN
Maximum slowness yet reported was 43109 ms, average is 20580
Created attachment 91847 [details]
Evaluation: IMHO there is a problem in NbToolTip --- from AWT EDT the method
static synchronized buildToolTip(JTextComponent)
1. I don't understand why is that method synchronized. It holds a static class lock and calls into e.g. getMimeType. This can be dangerous (but unrelated to the slowness problem).
2. through buildTip the method
private Annotation getTipAnnotations()
is called in AWT EDT. And this can be problematic in cases when the file system calls (e.g. operations on folder and especially ic.instanceCreate() is called on EDT.
I suggest to call getTipAnnotations off the EDT but I don't know enough details to be able to propose a suitable fix.
Returning to the issue to the original gurus.