Permalink
Browse files

ChunkedMethod: Removed debugging printing.

  • Loading branch information...
esstrifork committed Jun 23, 2011
1 parent 8317ce2 commit a6ad4cba90e1fdf27d4474c2afe29ee3368a0fa5
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/main/java/com/trifork/deltazip/ChunkedMethod.java
@@ -104,8 +104,6 @@ public void compress(ByteBuffer org, byte[] ref_data, OutputStream dst) {
int ref_data_offset = 0;
while (org.hasRemaining()) {
- System.err.println("DB| Chunking from ("+org.position()+","+ref_data_offset+")");
- System.err.println("DB| Remaining: ("+org.remaining()+","+(ref_data.length - ref_data_offset)+")");
chunk_options.clear();
// Generate chunk options:
@@ -146,7 +144,7 @@ protected static ChunkOption findBestCandidate(Iterable<ChunkOption> chunk_optio
best_ratio = candidate_ratio;
}
}
- System.err.println("DB| choosing chunk option "+best_candidate+" with ratio "+best_ratio);
+// System.err.println("DB| choosing chunk option "+best_candidate+" with ratio "+best_ratio);
return best_candidate;
}
@@ -186,10 +184,6 @@ public static PrefixChunkOption create(ByteBuffer data, byte[] ref_data, int ref
int limit = Math.min(SIZE_LIMIT,
Math.min(data.remaining(), ref_data.length - ref_data_offset));
int i = 0;
- if (limit>0) {
- System.err.println("PrefixChunkOption.create(): first data byte is "+data.get(start_pos));
- System.err.println("PrefixChunkOption.create(): first ref byte is "+ref_data[ref_data_offset]);
- }
while (i < limit &&
data.get(start_pos + i) == ref_data[ref_data_offset + i]) {
i++;

0 comments on commit a6ad4cb

Please sign in to comment.