2 megabytes is sufficient for testing purposes.

This commit is contained in:
md_5 2015-02-07 14:19:33 +11:00
parent 32693aeaff
commit f4ae511af0

View File

@ -29,7 +29,7 @@ public class NativeZlibTest
System.out.println( "Testing: " + zlib ); System.out.println( "Testing: " + zlib );
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
byte[] dataBuf = new byte[ 1 << 25 ]; // 32 megabytes byte[] dataBuf = new byte[ 1 << 22 ]; // 2 megabytes
new Random().nextBytes( dataBuf ); new Random().nextBytes( dataBuf );
zlib.init( true, 9 ); zlib.init( true, 9 );