JDK-6356456 : REGRESSION: GZIPInputStream is slower on 1.4.2_10 than on 1.4.2_09
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 1.4.2_10
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-11-29
  • Updated: 2013-11-01
  • Resolved: 2005-12-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_11Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Testcase (details can be found in the comments section):

$ source ~/.java142_09
$ java -fullversion
java full version "1.4.2_09-b05"
$ time java -classpath .:sharedlib/jload.jar DumpTest EXPDUMP > /dev/null
Reading EXPDUMP
End of EXPDUMP reached
finished
31.0u 1.0s 0:41 77% 0+0k 0+0io 0pf+0w

$ source ~/.java142_10
$ time java -classpath .:sharedlib/jload.jar DumpTest EXPDUMP > /dev/null
Reading EXPDUMP
End of EXPDUMP reached
finished
136.0u 1.0s 2:21 96% 0+0k 0+0io 0pf+0w

$ source ~/.java15
$ java -fullversion
java full version "1.5.0_05-b05"
$ time java -classpath .:sharedlib/jload.jar DumpTest EXPDUMP > /dev/null
Reading EXPDUMP
End of EXPDUMP reached
finished
28.0u 1.0s 1:52 25% 0+0k 0+0io 0pf+0w

=> In this example, 1.4.2_10 is ~4.4 times slower than 1.4.2_09 while executing SAPs testcase called DumpTest.

Comments
EVALUATION The fix for 6206933 which was integrated into 1.4.2_10 changed Inflater.c and Deflater.c to copy client data to C buffers instead of pinning the native Java buffers. This resolved the scalability issue raised by that bug, but degraded performance.
29-11-2005

WORK AROUND Use 1.4.2_09 rather than 1.4.2_10. Customer can't use JRE 5.0 for the SAP Software, they are stuck at 1.4.2_09.
29-11-2005