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.
Moving one class takes about 20-30 Seconds. I think this to much. The class: -) has an extends clause -) implements an interface -) No directly dependencies on this class project: -) 2824 Source-Files Tested on WindowsXP with night-build (200902050256).
Created attachment 76835 [details] The nps-File while moving the class
Product Version: NetBeans IDE Dev (Build 090305) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Linux version 2.6.27-11-generic running on i386; UTF-8; en_US (nb) Reproducible. Time depends on number of usages of the moved class. As a test case I use the jEdit project (561 java files) and class org.gjt.sp.jedit.ActionSet. It has 49 occurences in ~11 files and preview of Move refactoring takes ~40 s. From profiling of MoveTransformer I guess it would help to minimize usages of SourceUtils.getFile that is really expensive.
Created attachment 77989 [details] MoveTransformer.nps
*** Issue 157123 has been marked as a duplicate of this issue. ***
I have significantly reduced invocations of SourceUtils.getFile and now I can do Move Class refactoring of org.gjt.sp.jedit.ActionSet in ~10 s. In case of the Rename refactoring of org.gjt.sp.jedit package it helps even better. From tens minutes measured with NB 6.5 to tens seconds. http://hg.netbeans.org/main/rev/38dec86d6046
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/38dec86d6046 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #158360: caching SourceUtils.getFile to speed up rename package and move refactoring
*** Issue 154964 has been marked as a duplicate of this issue. ***
*** Issue 159487 has been marked as a duplicate of this issue. ***
fixed in 6.7m3