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.
Created attachment 120817 [details] Proposed patch. [recent sources] When the OrganizeImports hint is run through Source/Inspect (and likely through Inspect&Transform as well), the hint will parse the source file again, leading to decreased performance. Not sure why I did not see it before, it may be random (depending on exact order of performing tasks), might have been hidden by other slow parts of the process (some fixed recently), or might have been miscategorized in the profiler snapshots. Anyway, seems forth fixing for 7.2 - see the attached patch.
Tomas, could you please review the patch? I would like to integrate both to trunk and NetBeans 7.2, if you would think its OK. Thanks.
The patch seems good to me.
Integrated into 'main-golden', will be available in build *201206170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fcfcbf3370f4 User: Jan Lahoda <jlahoda@netbeans.org> Log: #214181: ensure that when a single-file task is run for the file currently processed by the multi-file task, nothing is parsed again
Jirka, could you please try to verify, so that I start the HR integration process? Taking a bigger project, run Source/Inspect selecting a configuration that includes Organize Imports. Build 201206150001 should be slower than build 201206170001. Please do not use any earlier build for this - there was another performance optimization in 201206150001. To simplify the measurement, this option can be used: -J-Dorg.netbeans.modules.analysis.RunAnalysis.level=0 With this option, the total time spent by analysis should be printed to the log (look for line containing "Total analysis time:"). The logger was introduced recently, but I think 201206150001 already has it. Thanks.
verified in trunk
release72: http://hg.netbeans.org/releases/rev/6c94737b4cc4
Integrated into 'releases', will be available in build *201206212341* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/6c94737b4cc4 User: Jan Lahoda <jlahoda@netbeans.org> Log: #214181: ensure that when a single-file task is run for the file currently processed by the multi-file task, nothing is parsed again
verified