United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6578753 JFileChooser in 6u2 slow on Windows
JDK-6578753 : JFileChooser in 6u2 slow on Windows

Details
Type:
Bug
Submit Date:
2007-07-10
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2009-03-12
Component:
client-libs
OS:
windows_xp,windows
Sub-Component:
javax.swing
CPU:
x86
Priority:
P2
Resolution:
Cannot Reproduce
Affected Versions:
6,6u2
Fixed Versions:
7

Related Reports
Backport:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
JFileChooser takes much time to instantiate and to browse large folders. In comparison with 6u1, performance degraded significantly.

The issue was initially reported at http://www.javalobby.org/forums/thread.jspa?messageID=92159440

                                    

Comments
EVALUATION

I profiled it and found 3 major bottlenecks:

a) frequent calls to Win32ShellFolder2.isFileSystem() and Win32ShellFolder2.isLink(). The both methods invoke hasAttribute() that in turn delegates execution to the COM thread.

b) frequent calls from BasicDirectoryModel.LoadFilesThread to various Win32ShellFolder2's methods delegating execution to the COM thread.

c) frequent calls from FilePane.DetailsTableRowSorter to Win32ShellFolder2.ColumnComparator.compare() on file sorting, also delegating execution to the COM thread.
                                     
2007-07-12
EVALUATION

For the SDN community
Please note that this CR doesn't address the ZIP issue, it rather concerns overall performance degradation after the COM fix (see CR #6491795). For the ZIP issue, there's a special CR #5050516. You can find links to the both mentioned CR's in the 'Related CRs' section on this page.
                                     
2008-03-19
EVALUATION

This bug is a cause of fix of CR 6491795. Closed as "Not reproducible" because the fix of CR 6491795 for jdk7 contains fix of this CR as well.
                                     
2009-03-18



Hardware and Software, Engineered to Work Together