Browse Source

Increase PackOutputStream copy buffer to 64 KiB

Colby just pointed out to me the buffer was 16 KiB. This may
be very small for common objects. Increase to 64 KiB.

Change-Id: Ideecc4720655a57673252f7adb8eebdf2fda230d
tags/v3.0.0.201305080800-m7
Shawn Pearce 11 years ago
parent
commit
6c0bb4351d

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java View File

@@ -73,7 +73,7 @@ public final class PackOutputStream extends OutputStream {

private final byte[] headerBuffer = new byte[32];

private final byte[] copyBuffer = new byte[16 << 10];
private final byte[] copyBuffer = new byte[64 << 10];

private long checkCancelAt;


Loading…
Cancel
Save