This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This issue was reported manually by sdedic. It already has 1 duplicates Build: NetBeans IDE 7.4 Beta (Build 201307092200) VM: OpenJDK 64-Bit Server VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_17-mockbuild_2013_04_05_13_08-b00 OS: Linux User Comments: GUEST: code completion takes ages when it just was instant Maximum slowness yet reported was 12545 ms, average is 12545
Created attachment 143662 [details] nps snapshot
The Parser result tasks should support priorities + cancelling & restarting of lower priority (background, uninteractive) tasks. Hints evaluation is captured in the attached profiler snapshot. Each of the (uninterruptible) hint analysis takes ~1 seconds, but in sum the hints task takes too long time blocking others from parsing results. In this case no mutation which would cancel the pending task is done, only completion is invoked, which does not change the source, but prompt response is expected. If the CC parsing result task could cancel the hint evaluation (which could be restarted later), the responsiveness would be greatly improved. Of course, hints task cooperation would be required (e.g. to replan hints task re-execution), but no API for such cooperation exists, IMHO.
The hint run as ParserResultTask which is cancelled by the UserTask and reinvoked after the UT finished.
The HintTask is cancelled by HT.cancel() method. Seems that the Scanner does not check cancelled flag.
sorry; will fix in the scanner.