main
Brett 2023-11-17 15:52:24 -05:00
parent 3f23240ded
commit 2aea192c1a
6 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@ public class ChunkedCompressedChecksumFileReader {
public FileHeader readChunk(Tracer trace, Span sp) throws IOException {
Span gf = trace.spanBuilder("Chunk Read").startSpan();
FileHeader header = readHeader();
gf.setAttribute("Read Uncompressed", header.getUncompressed());
gf.setAttribute("Read Compressed", header.getCompressed());
gf.setAttribute("Read Hash", header.getHash());
try (Scope scope = gf.makeCurrent()) {
if (header.getUncompressed() == 0)
return header;

View File

@ -19,7 +19,7 @@ import java.util.concurrent.TimeUnit;
public class FileUtil {
// do not change it breaks stuff
protected static final int READER_SIZE = 8192;
protected static final int READER_SIZE = 131072;
public static final long SEED = 691;
private static final LZ4Factory LZ_FACTORY = LZ4Factory.fastestInstance();

Binary file not shown.