-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 17, 19
-
b11
The jarsigner tool can be used to sign jar/zip files. The implementation of this tool in sun.security.tools.jarsigner.Main uses a java.io.FileOutputStream which is used as the target stream to which the signed data is written out to. When the jar/zip file that is being signed is large in size, this can result in too many write system calls to the underlying file and can negatively impact performance on systems where file I/O is slow. Experiments with this code, has shown that using a BufferedOutputStream (which wraps the FileOutputStream) improves performance to a noticeable extent.