Bad performance with java.util.zip.Deflater after jdk1.5.0_06 and jdk 6
I have a problem with the jdk 5 and 6. After the version 1.5.0_06, the classe java.util.zip.Deflater and Inflater have very bad performance. With the version 1.5.0_06, there is no pb, to compress a strem of 50Mo, he needs 1,5 sec instead of the version 1.5.0_07 and all others after, he needs 60 sec...
Is there anybody who have the same pb ?
(Sorry for the bad english ... )
I use this code :
public static byte compresserZlib(byte donnees)
ByteArrayOutputStream resultat = new ByteArrayOutputStream();
byte buffer = new byte;
Deflater deflater = new Deflater();
nbEcrits = deflater.deflate(buffer);
resultat.write(buffer, 0, nbEcrits);