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.
If you select a directory in Explorer and the directory contains a large amount of subdirectories and files, DELETE action (after confirmed) takes very long time and the IDE is frozen in the meantime. 1. the action should be made faster, it can take several minutes now while outside the IDE user can do the delete within several seconds A simple test shows that on my machine with RH9 a 1000 files are deleted by rm command in 25ms, and the IDE is deleting the same files for 15 seconds. 2. if we consider this action blocking, a dialog box with a progress bar must be displayed, otherwise the IDE should not freeze and the user should be able to continue working with the IDE
This problem has two parts: 1/ FS and DS impl. of delete - too dangerous (3.6) 2/ impl. of action, showing progress bar and so on - after UI freeze (3.6) Not trivial. Definitely not part of 3.6.
*** Issue 39748 has been marked as a duplicate of this issue. ***
Final solution making the action as fast as the operating system's native delete may be postponed after 3.6, but performance test results show there is a regression in directory delete action in comparison to NB351. The absolute times together with the percentages of comparison to NB351: Delete folder with 100 java files (1st invocation) linux: 3 024 ms (+44.9%) solaris: 4 574 ms (+47.6%) xp: 2 531 ms (+49.1%) Delete folder with 100 java files (2nd and next invocations) linux: 3 032 ms (+49.0%) solaris: 4 597 ms (+45.6%) xp: 2 627 ms (+61.2%) So, please, investigate this regression.
Created attachment 13376 [details] output form OptimizeIt
Seems that ShadowChangeAdapter and its impl. of OperationListener could be source of regression. Jarda volunteered to look at it. Then separated issue will be #39981 was filled.
Downgrading to P3. This is no longer a regression against NB351. Actuallly Yarda's fix of 39981 caused the delete action be quite faster than on NB351. :)
Fixed as part of issue 39640.
Verified with the latest trunk build.
*** Issue 37848 has been marked as a duplicate of this issue. ***