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 43141 - PERF: FileUtil.findFreeFileName does not scale on Win
Summary: PERF: FileUtil.findFreeFileName does not scale on Win
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: PERFORMANCE
Depends on: 45031
Blocks:
  Show dependency tree
 
Reported: 2004-05-12 10:54 UTC by David Konecny
Modified: 2009-12-21 04:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-05-12 10:54:46 UTC
Try following usecase:

FileObject f = ...;
while (true) {
 String n = FileUtil.findFreeFileName(f,"a","b");
 f.createData(n,"b");
}

and measure time spent in the method. The more
files in the folder the slower it will be becasue
impl of the method on Windows iterate through all
the files in the folder. For a few hundreds of
files it will be way slower (>100ms on my notebook).

On the other hand it is not very common usecase
and so it is just P3.
Comment 1 rmatous 2004-06-16 16:23:45 UTC
AbstractFileSystem is case-sensitiv even on Windows. This is source of
problems and this one is just one example. 

Comment 2 rmatous 2004-06-16 16:25:45 UTC
Priority a little bit decreased.
Comment 3 pzajac 2005-02-17 13:31:01 UTC
Radek,
the FileBased filesystem is now case insensitive for windows. I should
be simply fixed by removing the special code fro windows in
FileUtil.checkFreeFileName

<<      if ((Utilities.isWindows () || (Utilities.getOperatingSystem
() == Utilities.OS_OS2)) || isMacOS()) {
>>
     if (( (Utilities.getOperatingSystem () == Utilities.OS_OS2)) ) {

And I have a question. MacOS is case insensitive ?


Comment 4 Antonin Nebuzelsky 2008-04-15 17:14:23 UTC
Reassigning to new module owner jskrivanek.
Comment 5 Quality Engineering 2009-12-21 04:42:08 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team