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.
Deleting a folder with files takes very long time if the number of files is large (3:30min on my slow machine w/ 1000 files). In fact the dependence of the time on number of files deleted is exponential. This is most probably caused by the fix of issue 40762 (The Refresh Folder action should check modified data files). JFluid profiler shows that calls to Win32FileSystem.normalize() and File.lastModified() are the hotspots. See the attached jfluid snapshots. The reversed normalize() call graph shows that the folder refreshing is the culprit.
Created attachment 15338 [details] JFluid - accumulated time spend in methods during deleting 1000 txt files
Created attachment 15339 [details] JFluid - accumulated time spend in methods of classes during deleting 1000 txt files
Created attachment 15340 [details] JFluid - reversed call graph of Win32FileSystem.normalize() method
#40762 doesn't affect deleting anymore. /cvs/openide/src/org/openide/filesystems/AbstractFolder.java new revision: 1.76; previous revision: 1.75
Verified fixed in trunk build 20040531-1148.