Use buffered output for ExactCallLogger

This commit is contained in:
Mark DePristo 2012-10-17 14:14:55 -04:00
parent fa93681f51
commit 8288c30e36
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class ExactCallLogger implements Cloneable {
*/ */
public ExactCallLogger(final File outputFile) { public ExactCallLogger(final File outputFile) {
try { try {
callReport = new PrintStream(new FileOutputStream(outputFile)); callReport = new PrintStream(new BufferedOutputStream(new FileOutputStream(outputFile), 10000000));
callReport.println(Utils.join("\t", Arrays.asList("loc", "variable", "key", "value"))); callReport.println(Utils.join("\t", Arrays.asList("loc", "variable", "key", "value")));
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
throw new UserException.CouldNotCreateOutputFile(outputFile, e); throw new UserException.CouldNotCreateOutputFile(outputFile, e);