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.

Bug 44003 - Huge delete action time regression (time exponential on number of files)
Summary: Huge delete action time regression (time exponential on number of files)
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 43278
  Show dependency tree
 
Reported: 2004-05-28 18:10 UTC by Antonin Nebuzelsky
Modified: 2008-12-22 22:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JFluid - accumulated time spend in methods during deleting 1000 txt files (27.15 KB, image/png)
2004-05-28 18:11 UTC, Antonin Nebuzelsky
Details
JFluid - accumulated time spend in methods of classes during deleting 1000 txt files (20.90 KB, image/png)
2004-05-28 18:12 UTC, Antonin Nebuzelsky
Details
JFluid - reversed call graph of Win32FileSystem.normalize() method (68.93 KB, image/png)
2004-05-28 18:13 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2004-05-28 18:10:08 UTC
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.
Comment 1 Antonin Nebuzelsky 2004-05-28 18:11:32 UTC
Created attachment 15338 [details]
JFluid - accumulated time spend in methods during deleting 1000 txt files
Comment 2 Antonin Nebuzelsky 2004-05-28 18:12:33 UTC
Created attachment 15339 [details]
JFluid - accumulated time spend in methods of classes during deleting 1000 txt files
Comment 3 Antonin Nebuzelsky 2004-05-28 18:13:19 UTC
Created attachment 15340 [details]
JFluid - reversed call graph of Win32FileSystem.normalize() method
Comment 4 rmatous 2004-05-31 12:34:14 UTC
#40762 doesn't affect deleting anymore.

/cvs/openide/src/org/openide/filesystems/AbstractFolder.java
new revision: 1.76; previous revision: 1.75
Comment 5 Antonin Nebuzelsky 2004-05-31 14:35:26 UTC
Verified fixed in trunk build 20040531-1148.