Permalink
Browse files

use BufferedOutputStream when building jar

it speeds up building (from 3% to 1% in CompileCompilerDependenciesTest)
  • Loading branch information...
1 parent 7c8937b commit 75255aebdc7587e73fe9b92cc7c354d820c668a4 @stepancheg stepancheg committed Apr 21, 2012
@@ -23,6 +23,7 @@
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.TimeUtils;
+import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
@@ -57,7 +58,7 @@
FileOutputStream stdlibJar = new FileOutputStream(jarFile);
try {
- JarOutputStream jarOutputStream = new JarOutputStream(stdlibJar);
+ JarOutputStream jarOutputStream = new JarOutputStream(new BufferedOutputStream(stdlibJar));
try {
copyToJar(classesDir, jarOutputStream);
}

0 comments on commit 75255ae

Please sign in to comment.