-
Bug
-
Resolution: Fixed
-
P3
-
5.5.1, 1.4.2, 5.0, 6
-
b22
-
generic, x86
-
generic, windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2151737 | 6u10 | Leonid Popov | P3 | Resolved | Fixed | b07 |
FULL PRODUCT VERSION :
C:\dev\Software\j2sdk1.4.2_04\bin>java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
My OS is XP Pro.
A DESCRIPTION OF THE PROBLEM :
We are having issues with JFileChooser being unacceptably slow in windows XP. If we selected specific directories in the chooser it would take up to a minute to fill the window with the files. I was able to track the issue down to only being reproducible on directories that have large zip files in them (5+ megs each). This immediately pointed me to the new integrated zip file features in Windows XP. I disabled the zip support by doing:
regsvr32 /u %windir%\system32\zipfldr.dll
and the issue disappeared. I then enabled the zip support again with:
regsvr32 %windir%\system32\zipfldr.dll
and the issue returned.
I realize this might actually be a Microsoft bug, but it also could be that Sun's native implementation is using an api that is now very slow in XP. Perhaps just changing the native method will fix the issue.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a directory.
Fill it with a lot of large zip files (5+ megs each)
Load JFileChooser to that new directory.
Observe slowness
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the File list for the directory would open at about the same speed as other directories with non-zip entries.
ACTUAL -
Very slow JFileChooser painting of directoryM-^OÀ»s content
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 270259)
======================================================================
- backported by
-
JDK-2151737 JFileChooser very slow in XP if directory contains large zip files
- Resolved
- duplicates
-
JDK-6372808 JFileChooser takes a long time to instantiate, at least the first time
- Closed
-
JDK-6584600 JFileChooser: application stucks after entering in directory witch many zip files.
- Closed
-
JDK-6468222 JFileChooser poor performance (b98) when large number of files in subdirectory.
- Closed
- relates to
-
JDK-6578753 JFileChooser in 6u2 slow on Windows
- Closed
-
JDK-5033747 JFileChooser is very slow on Windows XP
- Closed
-
JDK-6593680 Minimize number of file access operation by JFileChooser
- Open
-
JDK-2151272 JFileChooser in 6u2 slow on Windows
- Resolved
-
JDK-4480327 1.4's JFileChooser extremely slow for remote folders
- Closed