Increase buffer size in preloader from 8K to 512K

Doesn't seem to improve performance, but cuts down lots of IO file read counts
This commit is contained in:
Alexander Udalov
2015-06-03 15:04:48 +03:00
parent 9d493d995e
commit c18ef6e2ac
@@ -127,7 +127,7 @@ public class ClassPreloadingUtils {
FileInputStream fileInputStream = new FileInputStream(jarFile);
try {
byte[] buffer = new byte[10 * 1024];
ZipInputStream stream = new ZipInputStream(new BufferedInputStream(fileInputStream));
ZipInputStream stream = new ZipInputStream(new BufferedInputStream(fileInputStream, 1 << 19));
while (true) {
ZipEntry entry = stream.getNextEntry();
if (entry == null) break;